diff options
author | glebius <glebius@FreeBSD.org> | 2005-07-13 14:06:13 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-07-13 14:06:13 +0000 |
commit | 012b5a1b92cbb3d7927bb7e4b0e487f333f5311a (patch) | |
tree | d6dc60f5b5175533e913fbe96ef30ee2f55fe2ed /sys/pci | |
parent | 1cfa2c3d678b67098aea458cc418125af3e2a1a8 (diff) | |
download | FreeBSD-src-012b5a1b92cbb3d7927bb7e4b0e487f333f5311a.zip FreeBSD-src-012b5a1b92cbb3d7927bb7e4b0e487f333f5311a.tar.gz |
NET_LOCK_GIANT() when entering network code.
Pointy hat to: glebius
Reported by: rodrigc
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_xl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index f869af2..8e3096d 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -2100,9 +2100,11 @@ xl_rxeof_task(void *arg, int pending) { struct xl_softc *sc = (struct xl_softc *)arg; + NET_LOCK_GIANT(); XL_LOCK(sc); xl_rxeof(sc); XL_UNLOCK(sc); + NET_UNLOCK_GIANT(); } /* |