diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-07-27 16:22:31 +0800 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-08-24 08:52:35 -0700 |
commit | 374f78f75be98c72876a4d0311b278cd226effba (patch) | |
tree | e64b620cd462a4feff4f6c3028188f99fa14f4dc /drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | |
parent | 69a64658de502c8ca383fe2c5a5208f00b5844cd (diff) | |
download | talos-obmc-linux-374f78f75be98c72876a4d0311b278cd226effba.tar.gz talos-obmc-linux-374f78f75be98c72876a4d0311b278cd226effba.zip |
ixgbe: Replace GFP_ATOMIC with GFP_KERNEL
ixgbe_fcoe_ddp_setup(), ixgbe_setup_fcoe_ddp_resources() and
ixgbe_sw_init() are never called in atomic context.
They call kmalloc(), dma_pool_alloc() and 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: Sebastian Basierski <sebastianx.basierski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c')
0 files changed, 0 insertions, 0 deletions