]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix lptopen() and lptclose() to not trash the state of the HAVEBUS flag
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 11 Feb 2009 14:25:09 +0000 (14:25 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 11 Feb 2009 14:25:09 +0000 (14:25 +0000)
commit84f9a0e5c5a8b3d8f22e27f7fe8e8fdbe722ad98
treeb295b188099b5496413c1f37e69b696eb61f372a
parentd0e723a10c8e2ff45d5c2dbd2a6e1c1e83655160
Fix lptopen() and lptclose() to not trash the state of the HAVEBUS flag
in 'sc_state'.  This allows the lpt_release_ppbus() calls in those two
routines to actually release the ppbus and thus fixes the hangs noticed
with the lpt(4) driver since the recent ppbus changes.  The old lpt(4)
driver didn't actually check the HAVEBUS flag in lpt_release_ppbus() which
is why these bugs weren't noticed before.
sys/dev/ppbus/lpt.c