net: thunderx: use GFP_KERNEL in thread context
GFP_KERNEL should be used in the thread context Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fa1a6c93af
commit
86ace693bb
|
@ -356,7 +356,7 @@ static int nicvf_init_snd_queue(struct nicvf *nic,
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
sq->desc = sq->dmem.base;
|
sq->desc = sq->dmem.base;
|
||||||
sq->skbuff = kcalloc(q_len, sizeof(u64), GFP_ATOMIC);
|
sq->skbuff = kcalloc(q_len, sizeof(u64), GFP_KERNEL);
|
||||||
if (!sq->skbuff)
|
if (!sq->skbuff)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
sq->head = 0;
|
sq->head = 0;
|
||||||
|
|
Loading…
Reference in New Issue