]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: cisco: enic: Replace GFP_ATOMIC with GFP_KERNEL
authorJia-Ju Bai <baijiaju1990@gmail.com>
Sat, 4 Aug 2018 00:40:09 +0000 (08:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Aug 2018 20:08:06 +0000 (13:08 -0700)
commit039b1d5e5862375b0da534bb75fc580eaa547d53
tree8356a6ddae24b1a619a7e46e06eeca91770ce7be
parent07d53ae4fbdf7458f4d51249aa24d75c76fe52a8
net: cisco: enic: Replace GFP_ATOMIC with GFP_KERNEL

vnic_dev_register(), vnic_rq_alloc_bufs() and vnic_wq_alloc_bufs()
are never called in atomic context.
They call kzalloc() 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>
Acked-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/vnic_dev.c
drivers/net/ethernet/cisco/enic/vnic_rq.c
drivers/net/ethernet/cisco/enic/vnic_wq.c