NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/43032 CVS commit: src/external/cddl/osnet/dev/dtrace



The following reply was made to PR kern/43032; it has been noted by GNATS.

From: "Paul Goyette" <pgoyette%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/43032 CVS commit: src/external/cddl/osnet/dev/dtrace
Date: Sat, 28 Nov 2015 22:41:36 +0000

 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.
 


Home | Main Index | Thread Index | Old Index