svn commit: r288667 - head/sys/dev/usb/wlan

Kevin Lo kevlo at FreeBSD.org
Sun Oct 4 13:40:23 UTC 2015


Author: kevlo
Date: Sun Oct  4 13:40:22 2015
New Revision: 288667
URL: https://svnweb.freebsd.org/changeset/base/288667

Log:
  Replace M_NOWAIT with M_WAITOK for consistency with other wireless drivers.

Modified:
  head/sys/dev/usb/wlan/if_upgt.c

Modified: head/sys/dev/usb/wlan/if_upgt.c
==============================================================================
--- head/sys/dev/usb/wlan/if_upgt.c	Sun Oct  4 13:39:00 2015	(r288666)
+++ head/sys/dev/usb/wlan/if_upgt.c	Sun Oct  4 13:40:22 2015	(r288667)
@@ -956,10 +956,7 @@ upgt_vap_create(struct ieee80211com *ic,
 
 	if (!TAILQ_EMPTY(&ic->ic_vaps))		/* only one at a time */
 		return NULL;
-	uvp = (struct upgt_vap *) malloc(sizeof(struct upgt_vap),
-	    M_80211_VAP, M_NOWAIT | M_ZERO);
-	if (uvp == NULL)
-		return NULL;
+	uvp = malloc(sizeof(struct upgt_vap), M_80211_VAP, M_WAITOK | M_ZERO);
 	vap = &uvp->vap;
 	/* enable s/w bmiss handling for sta mode */
 


More information about the svn-src-all mailing list