diff options
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_rx.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_ioctl.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_rx.c b/drivers/net/wireless/hostap/hostap_80211_rx.c index 3816df96a663..fa592cb6bf9a 100644 --- a/drivers/net/wireless/hostap/hostap_80211_rx.c +++ b/drivers/net/wireless/hostap/hostap_80211_rx.c | |||
@@ -354,8 +354,7 @@ static struct hostap_bss_info *__hostap_add_bss(local_info_t *local, u8 *bssid, | |||
354 | list_del(&bss->list); | 354 | list_del(&bss->list); |
355 | local->num_bss_info--; | 355 | local->num_bss_info--; |
356 | } else { | 356 | } else { |
357 | bss = (struct hostap_bss_info *) | 357 | bss = kmalloc(sizeof(*bss), GFP_ATOMIC); |
358 | kmalloc(sizeof(*bss), GFP_ATOMIC); | ||
359 | if (bss == NULL) | 358 | if (bss == NULL) |
360 | return NULL; | 359 | return NULL; |
361 | } | 360 | } |
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index 9419cebca8a5..f12a79786fbd 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c | |||
@@ -3038,8 +3038,7 @@ static int prism2_ioctl_priv_download(local_info_t *local, struct iw_point *p) | |||
3038 | p->length > 1024 || !p->pointer) | 3038 | p->length > 1024 || !p->pointer) |
3039 | return -EINVAL; | 3039 | return -EINVAL; |
3040 | 3040 | ||
3041 | param = (struct prism2_download_param *) | 3041 | param = kmalloc(p->length, GFP_KERNEL); |
3042 | kmalloc(p->length, GFP_KERNEL); | ||
3043 | if (param == NULL) | 3042 | if (param == NULL) |
3044 | return -ENOMEM; | 3043 | return -ENOMEM; |
3045 | 3044 | ||