]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r196547
authorthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 29 Aug 2009 15:42:06 +0000 (15:42 +0000)
committerthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 29 Aug 2009 15:42:06 +0000 (15:42 +0000)
commit8d51b735be7ea15676815b3a162ef487fb7d24c0
tree18a3676ab6b5c3d738884dda71a74b8c8a80def6
parent917badadbb5acf79fc9411b1d03e3c6c6d64b562
MFC r196547

 It is possible for all the kthreads to exit (hci modules unloaded) which in
 turn ends our usb process. This means the proc pointer becomes invalid and will
 panic if a new kthread is added. Count the number of threads and clear the proc
 pointer on the last one.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@196642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/usb_process.c