mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Avoid deferencing NULL in if_free().
This commit is contained in:
parent
14e9825634
commit
330fd412b5
1 changed files with 2 additions and 3 deletions
|
|
@ -508,9 +508,8 @@ ral_attach(device_t dev)
|
|||
|
||||
fail7: bpfdetach(ifp);
|
||||
ieee80211_ifdetach(ic);
|
||||
fail6: if_free(ifp);
|
||||
|
||||
ral_free_rx_ring(sc, &sc->rxq);
|
||||
if_free(ifp);
|
||||
fail6: ral_free_rx_ring(sc, &sc->rxq);
|
||||
fail5: ral_free_tx_ring(sc, &sc->bcnq);
|
||||
fail4: ral_free_tx_ring(sc, &sc->prioq);
|
||||
fail3: ral_free_tx_ring(sc, &sc->atimq);
|
||||
|
|
|
|||
Loading…
Reference in a new issue