staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context
txq_add_mgmt_pkt allocates memory while being called from atomic context so needs to use GFP_ATOMIC Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6229fed9ee
commit
2e299cc969
@ -316,7 +316,7 @@ int wilc_wlan_txq_add_mgmt_pkt(struct net_device *dev, void *priv, u8 *buffer,
|
|||||||
if (wilc->quit)
|
if (wilc->quit)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
tqe = kmalloc(sizeof(*tqe), GFP_KERNEL);
|
tqe = kmalloc(sizeof(*tqe), GFP_ATOMIC);
|
||||||
|
|
||||||
if (!tqe)
|
if (!tqe)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user