staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context
PATCH 1/1 staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context
From: Adham Abozaeid <[email protected]>
txq_add_mgmt_pkt allocates memory while being called from atomic context so needs to use GFP_ATOMIC
Signed-off-by Adham Abozaeid <[email protected]>
--- drivers/staging/wilc1000/wilc_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/wilc_wlan.c +1 -1
@@ -316,7 +316,7 @@ int wilc_wlan_txq_add_mgmt_pkt(struct net_device *dev, void *priv, u8 *buffer,if (wilc->quit)return 0 ; - tqe =kmalloc (sizeof (*tqe),GFP_KERNEL ); + tqe =kmalloc (sizeof (*tqe),GFP_ATOMIC );if (!tqe)return 0 ;
Signature · 1 line
2.17.1