summaryrefslogtreecommitdiffstats
path: root/lib/libgssapi/gss_release_name.c
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2008-09-19 07:40:30 +0000
committerweongyo <weongyo@FreeBSD.org>2008-09-19 07:40:30 +0000
commitc9d141b06039d0d33d20ee9fd43469bd099ddf04 (patch)
tree282aa49e5911925fbb9ab6c8bf4269b7e0d0e0a2 /lib/libgssapi/gss_release_name.c
parent8e8ffe74e6594137ffa62ce267a374a724054622 (diff)
downloadFreeBSD-src-c9d141b06039d0d33d20ee9fd43469bd099ddf04.zip
FreeBSD-src-c9d141b06039d0d33d20ee9fd43469bd099ddf04.tar.gz
fix a another driver bug related with tsleep() during detaching that
this also can be happened if we pull the USN stick out forcibly. Currently the ZyDAS driver uses tsleep() when it try to query a read command to the device and it'd make a timeout if the device doesn't response within about 1 sec. In a case of that the USB stick is gone by hand and the driver's scanning with changing the channel numbers, the thread which is sleeping until a command requested is responded can be waked up after all detaching routines finished that means the zyd softc already freed. Tring to touch the softc freed by the wakeup thread makes a panic. So make sure that all sleeping threads should be waken up before the detach is completed and any other new requests to the device should be prevented.
Diffstat (limited to 'lib/libgssapi/gss_release_name.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud