Commit 75ac9a28 authored by Julia Lawall's avatar Julia Lawall Committed by John W. Linville
Browse files

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

Signed-off-by: default avatarJulia Lawall <>
Acked-by: default avatarBing Zhao <>
Signed-off-by: default avatarJohn W. Linville <>
parent 11ee5158
......@@ -2001,7 +2001,7 @@ mwifiex_save_curr_bcn(struct mwifiex_private *priv)
priv->curr_bcn_buf = kmalloc(curr_bss->beacon_buf_size,
if (!priv->curr_bcn_buf) {
"failed to alloc curr_bcn_buf\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment