Subject: CVS commit: src/sys/net
To: None <>
From: Paul Kranenburg <>
List: source-changes
Date: 05/14/2004 13:23:12
Module Name:	src
Committed By:	pk
Date:		Fri May 14 13:23:12 UTC 2004

Modified Files:
	src/sys/net: if_tun.c

Log Message:
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.69 -r1.70 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.