net: thunderx: use GFP_KERNEL in thread context
authorAleksey Makarov <aleksey.makarov@caviumnetworks.com>
Tue, 2 Jun 2015 18:00:27 +0000 (11:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2015 19:49:33 +0000 (12:49 -0700)
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>
drivers/net/ethernet/cavium/thunder/nicvf_queues.c

index 2ed7d1b7f7e8bca0d97c7b6420ae9a5d1d8ca866..d69d228d11a013b4cb709041e49472a9b3b34040 100644 (file)
@@ -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;
This page took 0.026629 seconds and 5 git commands to generate.