Since em(4) taskqueue is a new network context, we need to conditionally

lock Giant here.

Submitted by:	Andrey V. Elsukov <bu7cher yandex.ru>
This commit is contained in:
Gleb Smirnoff 2006-02-07 13:11:13 +00:00
parent 6edb555dbc
commit d640400bc5

View File

@ -1101,6 +1101,7 @@ em_handle_rxtx(void *context, int pending)
struct adapter *adapter = context;
struct ifnet *ifp;
NET_LOCK_GIANT();
ifp = adapter->ifp;
/*
@ -1120,7 +1121,7 @@ em_handle_rxtx(void *context, int pending)
}
em_enable_intr(adapter);
return;
NET_UNLOCK_GIANT();
}
#endif