diff options
author | ru <ru@FreeBSD.org> | 2005-09-16 12:17:12 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-09-16 12:17:12 +0000 |
commit | 13700cf1fc4394b9db148c1b6b205f8e40ee5293 (patch) | |
tree | d7d514398c2f57b1838f480ae3e06786e072a559 | |
parent | 8f1b02531612d9b8bc8072a0cf4dbab7e3c63a6c (diff) | |
download | FreeBSD-src-13700cf1fc4394b9db148c1b6b205f8e40ee5293.zip FreeBSD-src-13700cf1fc4394b9db148c1b6b205f8e40ee5293.tar.gz |
Avoid deferencing NULL in if_free().
-rw-r--r-- | sys/dev/ral/if_ral.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ral/if_ral.c b/sys/dev/ral/if_ral.c index e8672c4..b7b7316 100644 --- a/sys/dev/ral/if_ral.c +++ b/sys/dev/ral/if_ral.c @@ -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); |