Module Name: src Committed By: pgoyette Date: Sat Nov 28 22:41:36 UTC 2015
Modified Files: src/external/cddl/osnet/dev/dtrace: dtrace_modevent.c Log Message: When loading the module, if devsw_attach() fails, call dtrace_unload() to undo the effects of dtrace_load(). And if dtrace_unload() fails, panic (since we can't get the system back to its earlier stable state). When unloading the module, call devsw_detach() first, to lock out any new access. Then call dtrace_unload(). If dgtrace_unload() fails, reattach the devsw, and if that fails, panic. Implements fixes described in PR kern/43032 To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/cddl/osnet/dev/dtrace/dtrace_modevent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.