Use M_ZERO for the bridge_iflist to ensure there are no unexpected suprises.

This commit is contained in:
Andrew Thompson 2005-12-17 10:12:20 +00:00
parent 6b74382014
commit 9d5e4aa8b1

View File

@ -795,7 +795,7 @@ bridge_ioctl_add(struct bridge_softc *sc, void *arg)
if (ifs->if_bridge != NULL)
return (EBUSY);
bif = malloc(sizeof(*bif), M_DEVBUF, M_NOWAIT);
bif = malloc(sizeof(*bif), M_DEVBUF, M_NOWAIT|M_ZERO);
if (bif == NULL)
return (ENOMEM);