change malloc when setting an optional ie to use M_NOWAIT

MFC after:	3 days
This commit is contained in:
Sam Leffler 2005-12-12 17:40:49 +00:00
parent e55e5e4276
commit c25442860a

View File

@ -1509,8 +1509,7 @@ ieee80211_ioctl_setoptie(struct ieee80211com *ic, struct ieee80211req *ireq)
return EINVAL;
if (ireq->i_len > IEEE80211_MAX_OPT_IE)
return EINVAL;
/* NB: data.length is validated by the wireless extensions code */
MALLOC(ie, void *, ireq->i_len, M_DEVBUF, M_WAITOK);
MALLOC(ie, void *, ireq->i_len, M_DEVBUF, M_NOWAIT);
if (ie == NULL)
return ENOMEM;
error = copyin(ireq->i_data, ie, ireq->i_len);