diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-08-04 08:40:09 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-04 13:08:06 -0700 |
commit | 039b1d5e5862375b0da534bb75fc580eaa547d53 (patch) | |
tree | 8356a6ddae24b1a619a7e46e06eeca91770ce7be /drivers/net/tun.c | |
parent | 07d53ae4fbdf7458f4d51249aa24d75c76fe52a8 (diff) |
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>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions