diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-17 13:13:57 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-17 13:13:57 +0000 |
commit | 195c8c58d190b52726e76be9ac1436213b6ae172 (patch) | |
tree | e57602125302b5ce1a678658929d7786063a47f3 /sys | |
parent | 9d08ae7534dac77439d26430a1f8c7ca57fd18fe (diff) |
Add an splassert check trunk_enqueue() calling this function at anything
below splnet() is a good recipe for doom.
OK henning, reyk, mpf
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_trunk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c index b212d6e1082..00cb5ac477f 100644 --- a/sys/net/if_trunk.c +++ b/sys/net/if_trunk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_trunk.c,v 1.68 2009/09/09 15:01:18 reyk Exp $ */ +/* $OpenBSD: if_trunk.c,v 1.69 2009/09/17 13:13:56 claudio Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -953,6 +953,8 @@ trunk_enqueue(struct ifnet *ifp, struct mbuf *m) int len, error = 0; u_short mflags; + splassert(IPL_NET); + /* Send mbuf */ mflags = m->m_flags; len = m->m_pkthdr.len; |