diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2012-01-09 04:40:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:08:39 -0500 |
commit | 75ac9a28a0c6b818ba1aba874b6b3ae17241552c (patch) | |
tree | b6eb5fd1044daad2809e9569997412d817c69ba8 /drivers/net/wireless/mwifiex/scan.c | |
parent | 11ee51589a61fa836b1540293ad6c7dfd7de544a (diff) |
drivers/net/wireless/mwifiex/scan.c: convert GFP_KERNEL to GFP_ATOMIC
The function is called with locks held and thus should not use GFP_KERNEL.
The semantic patch that makes this report is available
in scripts/coccinelle/locks/call_kern.cocci.
More information about semantic patching is available at
http://coccinelle.lip6.fr/
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c index 6396d3318ead..98f1ca9cd6d8 100644 --- a/drivers/net/wireless/mwifiex/scan.c +++ b/drivers/net/wireless/mwifiex/scan.c | |||
@@ -2001,7 +2001,7 @@ mwifiex_save_curr_bcn(struct mwifiex_private *priv) | |||
2001 | 2001 | ||
2002 | kfree(priv->curr_bcn_buf); | 2002 | kfree(priv->curr_bcn_buf); |
2003 | priv->curr_bcn_buf = kmalloc(curr_bss->beacon_buf_size, | 2003 | priv->curr_bcn_buf = kmalloc(curr_bss->beacon_buf_size, |
2004 | GFP_KERNEL); | 2004 | GFP_ATOMIC); |
2005 | if (!priv->curr_bcn_buf) { | 2005 | if (!priv->curr_bcn_buf) { |
2006 | dev_err(priv->adapter->dev, | 2006 | dev_err(priv->adapter->dev, |
2007 | "failed to alloc curr_bcn_buf\n"); | 2007 | "failed to alloc curr_bcn_buf\n"); |