mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
When msk_detach() is called from msk_attach(), ifp may be
yet not initialized.
This commit is contained in:
parent
c2442d279a
commit
4c5a247b54
1 changed files with 2 additions and 1 deletions
|
|
@ -1964,7 +1964,8 @@ msk_detach(device_t dev)
|
|||
/* Can't hold locks while calling detach. */
|
||||
MSK_IF_UNLOCK(sc_if);
|
||||
callout_drain(&sc_if->msk_tick_ch);
|
||||
ether_ifdetach(ifp);
|
||||
if (ifp)
|
||||
ether_ifdetach(ifp);
|
||||
MSK_IF_LOCK(sc_if);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue