Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147777449
D34629.1784343521.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
412 B
Referenced Files
None
Subscribers
None
D34629.1784343521.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 2:58 AM (1 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29177802
Default Alt Text
D34629.1784343521.diff (412 B)
Attached To
Mode
D34629: [PATCH] stge: fix null pointer dereference
Attached
Detach File
Event Timeline
Log In to Comment