Subject: CVS commit: [netbsd-2-0] src/sys/net
To: None <>
From: Matthias Scheler <>
List: source-changes
Date: 05/15/2004 13:42:19
Module Name:	src
Committed By:	tron
Date:		Sat May 15 13:42:19 UTC 2004

Modified Files:
	src/sys/net [netbsd-2-0]: if_tun.c

Log Message:
Pull up revision 1.70 (requested by pk in ticket #335):
Fix locking issues noticed by Tom Ivar Helbekkmo on tech-net:
	* always acquire the device instance lock at splnet()
	* missing unlocks in various places
Also, since this driver allows its device instances manipulated by two
independent subsystems (character device & interface clone create/destroy),
be careful not to rip away instance data in a clone destroy request if the
instance is still opened as a character device.

To generate a diff of this commit:
cvs rdiff -r1.68 -r1.68.2.1 src/sys/net/if_tun.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.