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
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)

Event Timeline