summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_tap.c')
-rw-r--r--sys/net/if_tap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index 6c88075..504c932 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -205,8 +205,7 @@ tapcreate(dev)
char *name = NULL;
/* allocate driver storage and create device */
- MALLOC(tp, struct tap_softc *, sizeof(*tp), M_TAP, M_WAITOK);
- bzero(tp, sizeof(*tp));
+ MALLOC(tp, struct tap_softc *, sizeof(*tp), M_TAP, M_WAITOK | M_ZERO);
/* select device: tap or vmnet */
if (minor(dev) & VMNET_DEV_MASK) {
OpenPOWER on IntegriCloud