diff options
author | Matt Renzelmann <mjr@cs.wisc.edu> | 2012-04-13 00:42:43 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-16 20:19:29 +0200 |
commit | 579b0637647de6e03e5707b32eb7c2ce56cc0f27 (patch) | |
tree | 1829b46eafd4727c09172026f18aa26fb8a761f9 /drivers/net/wireless/hostap | |
parent | mac80211: Take into account TSF adjustment latency in Toffset setpoint (diff) | |
download | linux-579b0637647de6e03e5707b32eb7c2ce56cc0f27.tar.xz linux-579b0637647de6e03e5707b32eb7c2ce56cc0f27.zip |
hostap: GFP_ATOMIC/GFP_KERNEL cleanup
The driver is allocating memory during initialization with GFP_ATOMIC
even though GFP_KERNEL is sufficient. This patch fixes it.
Signed-off-by: Matt Renzelmann <mjr@cs.wisc.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index bfa0d54221e8..627bc12074c7 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c @@ -244,8 +244,7 @@ u16 hostap_tx_callback_register(local_info_t *local, unsigned long flags; struct hostap_tx_callback_info *entry; - entry = kmalloc(sizeof(*entry), - GFP_ATOMIC); + entry = kmalloc(sizeof(*entry), GFP_KERNEL); if (entry == NULL) return 0; |