mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
NET_LOCK_GIANT() when entering network code.
Pointy hat to: glebius Reported by: rodrigc
This commit is contained in:
parent
000289660b
commit
016fcebe90
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue