diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2004-10-19 15:30:47 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2004-10-19 15:30:47 +0000 |
commit | 33bab57d1ecff2cad8f392b69924f6d163d3eb61 (patch) | |
tree | ae738eb2bfc0766ef7c2f4d5a69586338cd50d82 /sys/pci/if_vr.c | |
parent | 312c75c362ae1871d5a7ac77265fd86e9bb939ef (diff) | |
download | src-33bab57d1ecff2cad8f392b69924f6d163d3eb61.tar.gz src-33bab57d1ecff2cad8f392b69924f6d163d3eb61.zip |
Detach the Rhine completely on shutdown, rather than merely stopping it
as the original logic did. This fixes a race with vr_intr() which was
masked on UP systems and manifested on SMP systems.
PR: kern/62889
MFC after: 1 day
Notes
Notes:
svn path=/head/; revision=136693
Diffstat (limited to 'sys/pci/if_vr.c')
-rw-r--r-- | sys/pci/if_vr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index b1eeebbea52f..096a48145617 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/if_vr.c @@ -1692,7 +1692,5 @@ vr_shutdown(device_t dev) { struct vr_softc *sc = device_get_softc(dev); - VR_LOCK(sc); - vr_stop(sc); - VR_UNLOCK(sc); + vr_detach(sc); } |