Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109695149
D30741.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
610 B
Referenced Files
None
Subscribers
None
D30741.diff
View Options
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -609,6 +609,7 @@
mc = malloc(sizeof(struct vlan_mc_entry), M_VLAN, M_NOWAIT);
if (mc == NULL) {
IF_ADDR_WUNLOCK(ifp);
+ CURVNET_RESTORE();
return (ENOMEM);
}
bcopy(ifma->ifma_addr, &mc->mc_addr, ifma->ifma_addr->sa_len);
@@ -619,8 +620,10 @@
CK_SLIST_FOREACH (mc, &sc->vlan_mc_listhead, mc_entries) {
error = if_addmulti(ifp_p, (struct sockaddr *)&mc->mc_addr,
NULL);
- if (error)
+ if (error) {
+ CURVNET_RESTORE();
return (error);
+ }
}
CURVNET_RESTORE();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 11:10 AM (12 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16551992
Default Alt Text
D30741.diff (610 B)
Attached To
Mode
D30741: Restore VNET before returning in error paths in vlan_setmulti.
Attached
Detach File
Event Timeline
Log In to Comment