diff options
author | Aleksey Makarov <aleksey.makarov@caviumnetworks.com> | 2015-06-02 11:00:27 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-02 12:49:33 -0700 |
commit | 86ace693bb5ba54015e88bb637452d2d84f446a4 (patch) | |
tree | 37b7e5360846287f567ec39edc3d304dddd446d1 /drivers/net/ethernet/cavium | |
parent | fa1a6c93afbf774d87c04f03e30cf55dc1128906 (diff) | |
download | linux-86ace693bb5ba54015e88bb637452d2d84f446a4.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/cavium')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c index 2ed7d1b7f7e8..d69d228d11a0 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c @@ -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; |