Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: netlogic: Change GFP_ATOMIC to GFP_KERNEL

Below is data path of xlr_config_spill
xlr_net_probe
-->xlr_config_fifo_spill_area
--->xlr_config_spill

We can use GFP_KERNEL as this function is getting called from
xlr_net_probe and there are no locks.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hariprasad Kelam and committed by
Greg Kroah-Hartman
5d32630f 321cab4b

+1 -1
+1 -1
drivers/staging/netlogic/xlr_net.c
··· 385 385 386 386 base = priv->base_addr; 387 387 spill_size = size; 388 - spill = kmalloc(spill_size + SMP_CACHE_BYTES, GFP_ATOMIC); 388 + spill = kmalloc(spill_size + SMP_CACHE_BYTES, GFP_KERNEL); 389 389 if (!spill) 390 390 return ZERO_SIZE_PTR; 391 391