Page MenuHomeFreeBSD

D34629.diff
No OneTemporary

D34629.diff

diff --git a/sys/dev/stge/if_stge.c b/sys/dev/stge/if_stge.c
--- a/sys/dev/stge/if_stge.c
+++ b/sys/dev/stge/if_stge.c
@@ -699,7 +699,9 @@
bus_teardown_intr(dev, sc->sc_res[1], sc->sc_ih);
sc->sc_ih = NULL;
}
- bus_release_resources(dev, sc->sc_spec, sc->sc_res);
+
+ if (sc->sc_spec)
+ bus_release_resources(dev, sc->sc_spec, sc->sc_res);
mtx_destroy(&sc->sc_mii_mtx);
mtx_destroy(&sc->sc_mtx);

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 8:29 PM (21 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14746592
Default Alt Text
D34629.diff (412 B)

Event Timeline