Page MenuHomeFreeBSD

D25284.diff
No OneTemporary

D25284.diff

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

Mime Type
text/plain
Expires
Sat, Feb 28, 4:00 PM (10 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29064831
Default Alt Text
D25284.diff (546 B)

Event Timeline