Skip to content

Commit

Permalink
net: thunderx: use GFP_KERNEL in thread context
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aleksey Makarov authored and David S. Miller committed Jun 2, 2015
1 parent fa1a6c9 commit 86ace69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/cavium/thunder/nicvf_queues.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static int nicvf_init_snd_queue(struct nicvf *nic,
return err;

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)
return -ENOMEM;
sq->head = 0;
Expand Down

0 comments on commit 86ace69

Please sign in to comment.