From 37c11affd3fb965f0f75e777cedd81b78a17c3c6 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Fri, 3 Oct 2014 20:44:12 +0800 Subject: [PATCH] udp: Add NOTINHASH assertion to udp_inswildcardhash() So that we could catch programming bugs earlier. --- sys/netinet/udp_usrreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 5ff19a1ca9..13399bf3af 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1387,6 +1387,8 @@ udp_inswildcardhash(struct inpcb *inp, struct netmsg_base *msg, int error) lwkt_msg_t lmsg = &msg->lmsg; int cpu; + ASSERT_INP_NOTINHASH(inp); + /* This inpcb could no longer be directly detached */ inp->inp_flags &= ~INP_DIRECT_DETACH; -- 2.41.0