ibmvnic: Fix GFP_KERNEL allocation in interrupt context
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Mon, 17 Oct 2016 20:28:09 +0000 (15:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 18:17:13 +0000 (14:17 -0400)
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index bfe17d9c022df9ac8932c1cef9e4eac94cf23d77..928bf8a5a567631795d6db7c11dd02c85e7910e3 100644 (file)
@@ -1190,7 +1190,7 @@ static struct ibmvnic_sub_crq_queue *init_sub_crq_queue(struct ibmvnic_adapter
        if (!scrq)
                return NULL;
 
-       scrq->msgs = (union sub_crq *)__get_free_pages(GFP_KERNEL, 2);
+       scrq->msgs = (union sub_crq *)__get_free_pages(GFP_ATOMIC, 2);
        memset(scrq->msgs, 0, 4 * PAGE_SIZE);
        if (!scrq->msgs) {
                dev_warn(dev, "Couldn't allocate crq queue messages page\n");