From: Jia-Ju Bai Date: Mon, 5 Mar 2018 05:17:12 +0000 (-0700) Subject: hyper-v: use GFP_KERNEL for hv_context.hv_numa_map X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=597ff72f3de850c3b93b41eca21732715d6ffc60;p=openwrt%2Fstaging%2Fblogic.git hyper-v: use GFP_KERNEL for hv_context.hv_numa_map The kzalloc function is called with GFP_ATOMIC. But according to driver call graph, it is not in atomic context, namely no spinlock is held nor in an interrupt handler. This GFP_ATOMIC is unnecessary, and replace with GFP_KERNEL. Signed-off-by: Jia-Ju Bai Reviewed-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index fe96aab9e794..b6cacc4cccf2 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -147,7 +147,7 @@ int hv_synic_alloc(void) int cpu; hv_context.hv_numa_map = kzalloc(sizeof(struct cpumask) * nr_node_ids, - GFP_ATOMIC); + GFP_KERNEL); if (hv_context.hv_numa_map == NULL) { pr_err("Unable to allocate NUMA map\n"); goto err;