summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-11-22 19:27:17 +0000
committerglebius <glebius@FreeBSD.org>2013-11-22 19:27:17 +0000
commit9dc96d6afc49486ef0e15cadc125f954bed3fdcc (patch)
tree1a809fb2906c85d709c2e7bc2d1c69e3b6ca81bb /sys/kern
parent2f2c733b1305071976c365d809e4709c382711b3 (diff)
downloadFreeBSD-src-9dc96d6afc49486ef0e15cadc125f954bed3fdcc.zip
FreeBSD-src-9dc96d6afc49486ef0e15cadc125f954bed3fdcc.tar.gz
Merge r258128 from head:
Fix a very bad typo from r248887. Approved by: re (kib)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_mbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 8e278a4..a16af57 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1196,6 +1196,7 @@ m_split(struct mbuf *m0, int len0, int wait)
remain = m->m_len - len;
if (m0->m_flags & M_PKTHDR && remain == 0) {
n = m_gethdr(wait, m0->m_type);
+ if (n == NULL)
return (NULL);
n->m_next = m->m_next;
m->m_next = NULL;
OpenPOWER on IntegriCloud