svn commit: r277114 - projects/ifnet/sys/net
Gleb Smirnoff
glebius at FreeBSD.org
Tue Jan 13 07:45:43 UTC 2015
Author: glebius
Date: Tue Jan 13 07:45:42 2015
New Revision: 277114
URL: https://svnweb.freebsd.org/changeset/base/277114
Log:
Need M_ZERO here to avoid KASSERT in mtx_init().
Modified:
projects/ifnet/sys/net/if.c
Modified: projects/ifnet/sys/net/if.c
==============================================================================
--- projects/ifnet/sys/net/if.c Tue Jan 13 07:45:16 2015 (r277113)
+++ projects/ifnet/sys/net/if.c Tue Jan 13 07:45:42 2015 (r277114)
@@ -3653,7 +3653,7 @@ if_snd_alloc(int maxlen)
{
struct ifqueue *ifq;
- ifq = malloc(sizeof(struct ifqueue), M_IFNET, M_WAITOK);
+ ifq = malloc(sizeof(struct ifqueue), M_IFNET, M_ZERO | M_WAITOK);
mbufq_init(&ifq->ifq_mbq, maxlen);
mtx_init(&ifq->ifq_mtx, "ifqueue", NULL, MTX_DEF);
More information about the svn-src-projects
mailing list