svn commit: r307946 - head/sys/dev/usb/net
Conrad E. Meyer
cem at FreeBSD.org
Tue Oct 25 18:36:17 UTC 2016
Author: cem
Date: Tue Oct 25 18:36:15 2016
New Revision: 307946
URL: https://svnweb.freebsd.org/changeset/base/307946
Log:
uhso(4): Fix a null pointer dereference
The directly following m_defrag() call can wait, so there is no reason this
call can't as well.
Reported by: Coverity
CID: 1353551
Sponsored by: Dell EMC Isilon
Modified:
head/sys/dev/usb/net/uhso.c
Modified: head/sys/dev/usb/net/uhso.c
==============================================================================
--- head/sys/dev/usb/net/uhso.c Tue Oct 25 18:17:03 2016 (r307945)
+++ head/sys/dev/usb/net/uhso.c Tue Oct 25 18:36:15 2016 (r307946)
@@ -1752,7 +1752,7 @@ uhso_if_rxflush(void *arg)
* Allocate a new mbuf for this IP packet and
* copy the IP-packet into it.
*/
- m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
+ m = m_getcl(M_WAITOK, MT_DATA, M_PKTHDR);
memcpy(mtod(m, uint8_t *), mtod(m0, uint8_t *), iplen);
m->m_pkthdr.len = m->m_len = iplen;
More information about the svn-src-head
mailing list