soreceive_generic() still has similar KASSERT(), therefore instead of

remove KASSERT(), change it to check mbuf isn't NULL.

Suggested by:	kib
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2015-02-23 15:24:43 +00:00
parent f21684bc75
commit e9b70483d1

View File

@ -2286,6 +2286,8 @@ soreceive_dgram(struct socket *so, struct sockaddr **psa, struct uio *uio,
cm = cmn;
}
}
KASSERT(m == NULL || m->m_type == MT_DATA,
("soreceive_dgram: !data"));
while (m != NULL && uio->uio_resid > 0) {
len = uio->uio_resid;
if (len > m->m_len)