Date: Sun, 4 Oct 2015 13:40:23 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288667 - head/sys/dev/usb/wlan Message-ID: <201510041340.t94DeN3H034591@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510041340.t94DeN3H034591>