Skip to content

Commit 86ace69

Browse files
Aleksey Makarovdavem330
authored andcommitted
net: thunderx: use GFP_KERNEL in thread context
GFP_KERNEL should be used in the thread context Signed-off-by: Aleksey Makarov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fa1a6c9 commit 86ace69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/cavium/thunder/nicvf_queues.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ static int nicvf_init_snd_queue(struct nicvf *nic,
356356
return err;
357357

358358
sq->desc = sq->dmem.base;
359-
sq->skbuff = kcalloc(q_len, sizeof(u64), GFP_ATOMIC);
359+
sq->skbuff = kcalloc(q_len, sizeof(u64), GFP_KERNEL);
360360
if (!sq->skbuff)
361361
return -ENOMEM;
362362
sq->head = 0;

0 commit comments

Comments
 (0)