Home
last modified time | relevance | path

Searched hist:"6 ae5cbc4" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/nvidia/
H A Dforcedeth.c6ae5cbc4 Fri Jul 27 03:29:31 CDT 2018 Jia-Ju Bai <baijiaju1990@gmail.com> net: nvidia: forcedeth: Replace GFP_ATOMIC with GFP_KERNEL in nv_probe()

nv_probe() is never called in atomic context.
It calls dma_alloc_coherent() with GFP_ATOMIC, which is not necessary.
GFP_ATOMIC can be replaced with GFP_KERNEL.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
6ae5cbc4 Fri Jul 27 03:29:31 CDT 2018 Jia-Ju Bai <baijiaju1990@gmail.com> net: nvidia: forcedeth: Replace GFP_ATOMIC with GFP_KERNEL in nv_probe()

nv_probe() is never called in atomic context.
It calls dma_alloc_coherent() with GFP_ATOMIC, which is not necessary.
GFP_ATOMIC can be replaced with GFP_KERNEL.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>