From 016fcebe901585d09d20cf455db6f9a494146b56 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Wed, 13 Jul 2005 14:06:13 +0000 Subject: [PATCH] NET_LOCK_GIANT() when entering network code. Pointy hat to: glebius Reported by: rodrigc --- sys/pci/if_xl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index f869af2251e..8e3096dbf50 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(); } /*