Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149927389
D4929.id12334.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
D4929.id12334.diff
View Options
Index: sys/net/if_lagg.c
===================================================================
--- sys/net/if_lagg.c
+++ sys/net/if_lagg.c
@@ -1058,9 +1058,25 @@
/* Set to LAGG_PROTO_NONE during the attach. */
LAGG_WLOCK(sc);
if (sc->sc_proto != LAGG_PROTO_NONE) {
+ int (*sc_detach)(struct lagg_softc *sc);
+
+ /* Reset protocol and pointers */
sc->sc_proto = LAGG_PROTO_NONE;
- if (sc->sc_detach != NULL)
- sc->sc_detach(sc);
+ sc_detach = sc->sc_detach;
+ sc->sc_detach = NULL;
+ sc->sc_start = NULL;
+ sc->sc_input = NULL;
+ sc->sc_port_create = NULL;
+ sc->sc_port_destroy = NULL;
+ sc->sc_linkstate = NULL;
+ sc->sc_init = NULL;
+ sc->sc_stop = NULL;
+ sc->sc_lladdr = NULL;
+ sc->sc_req = NULL;
+ sc->sc_portreq = NULL;
+
+ if (sc_detach != NULL)
+ sc_detach(sc);
else
LAGG_WUNLOCK(sc);
} else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 29, 4:19 AM (4 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30509155
Default Alt Text
D4929.id12334.diff (862 B)
Attached To
Mode
D4929: [PR 206219] Kernel panic from lagg_ioctl and lagg_port_ioctl
Attached
Detach File
Event Timeline
Log In to Comment