summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/kern/uipc_mbuf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/kern/uipc_mbuf2.c')
-rw-r--r--freebsd/sys/kern/uipc_mbuf2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/sys/kern/uipc_mbuf2.c b/freebsd/sys/kern/uipc_mbuf2.c
index 6f98b0a2..7a0b9cf0 100644
--- a/freebsd/sys/kern/uipc_mbuf2.c
+++ b/freebsd/sys/kern/uipc_mbuf2.c
@@ -103,8 +103,8 @@ m_pulldown(struct mbuf *m, int off, int len, int *offp)
int writable;
/* check invalid arguments. */
- if (m == NULL)
- panic("m == NULL in m_pulldown()");
+ KASSERT(m != NULL, ("%s: fix caller: m is NULL off %d len %d offp %p\n",
+ __func__, off, len, offp));
if (len > MCLBYTES) {
m_freem(m);
return NULL; /* impossible */