aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew R. Reiter <arr@FreeBSD.org>2001-11-21 20:29:08 +0000
committerAndrew R. Reiter <arr@FreeBSD.org>2001-11-21 20:29:08 +0000
commit31689d25c8fbd6739434c38ce65b4304da9cbf40 (patch)
treeaf9a9905d03ea4a182cfda37da570d4b8adf83ff
parent43f5f1d6ac804219d28a31bbdee5d4b58c24852f (diff)
Notes
-rw-r--r--sys/net/if_vlan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 309821521eed..851275227e77 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -243,8 +243,7 @@ vlan_clone_create(struct if_clone *ifc, int *unit)
return (EEXIST);
}
- ifv = malloc(sizeof(struct ifvlan), M_VLAN, M_WAITOK);
- memset(ifv, 0, sizeof(struct ifvlan));
+ ifv = malloc(sizeof(struct ifvlan), M_VLAN, M_WAITOK | M_ZERO);
ifp = &ifv->ifv_if;
SLIST_INIT(&ifv->vlan_mc_listhead);