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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279209
@ -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