Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131555516
D25284.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
D25284.diff
View Options
Index: head/sys/net/if_lagg.c
===================================================================
--- head/sys/net/if_lagg.c
+++ head/sys/net/if_lagg.c
@@ -679,6 +679,9 @@
return (EINVAL);
}
+ if (sc->sc_destroying == 1)
+ return (ENXIO);
+
/* Limit the maximal number of lagg ports */
if (sc->sc_count >= LAGG_MAX_PORTS)
return (ENOSPC);
@@ -1190,6 +1193,8 @@
int count, buflen, len, error = 0, oldmtu;
bzero(&rpbuf, sizeof(rpbuf));
+
+ /* XXX: This can race with lagg_clone_destroy. */
switch (cmd) {
case SIOCGLAGG:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 10, 5:39 AM (20 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23520424
Default Alt Text
D25284.diff (546 B)
Attached To
Mode
D25284: lagg: Avoid adding a port to a lagg device being destroyed.
Attached
Detach File
Event Timeline
Log In to Comment