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:
parent
f21684bc75
commit
e9b70483d1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user