Use M_ZERO for the bridge_iflist to ensure there are no unexpected suprises.
This commit is contained in:
parent
6b74382014
commit
9d5e4aa8b1
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user