summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xl.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-07-13 14:06:13 +0000
committerglebius <glebius@FreeBSD.org>2005-07-13 14:06:13 +0000
commit012b5a1b92cbb3d7927bb7e4b0e487f333f5311a (patch)
treed6dc60f5b5175533e913fbe96ef30ee2f55fe2ed /sys/pci/if_xl.c
parent1cfa2c3d678b67098aea458cc418125af3e2a1a8 (diff)
downloadFreeBSD-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/if_xl.c')
-rw-r--r--sys/pci/if_xl.c2
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();
}
/*
OpenPOWER on IntegriCloud