[Midnightbsd-cvs] src [8930] trunk/sys/dev/snc/dp83932.c: switch to malloc flags

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 26 18:58:03 EDT 2016


Revision: 8930
          http://svnweb.midnightbsd.org/src/?rev=8930
Author:   laffer1
Date:     2016-09-26 18:58:02 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
switch to malloc flags

Modified Paths:
--------------
    trunk/sys/dev/snc/dp83932.c

Modified: trunk/sys/dev/snc/dp83932.c
===================================================================
--- trunk/sys/dev/snc/dp83932.c	2016-09-26 22:57:49 UTC (rev 8929)
+++ trunk/sys/dev/snc/dp83932.c	2016-09-26 22:58:02 UTC (rev 8930)
@@ -1109,7 +1109,7 @@
 	 * Our sonic_read() and sonic_get() require it.
 	 */
 
-	MGETHDR(m, M_DONTWAIT, MT_DATA);
+	MGETHDR(m, M_NOWAIT, MT_DATA);
 	if (m == 0)
 		return (0);
 	m->m_pkthdr.rcvif = sc->sc_ifp;
@@ -1120,7 +1120,7 @@
 
 	while (datalen > 0) {
 		if (top) {
-			MGET(m, M_DONTWAIT, MT_DATA);
+			MGET(m, M_NOWAIT, MT_DATA);
 			if (m == 0) {
 				m_freem(top);
 				return (0);
@@ -1128,7 +1128,7 @@
 			len = MLEN;
 		}
 		if (datalen >= MINCLSIZE) {
-			MCLGET(m, M_DONTWAIT);
+			MCLGET(m, M_NOWAIT);
 			if ((m->m_flags & M_EXT) == 0) {
 				if (top) m_freem(top);
 				return (0);



More information about the Midnightbsd-cvs mailing list