]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Replace GFP_ATOMIC with GFP_KERNEL in igb_sw_init()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 08:04:53 +0000 (16:04 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 24 Aug 2018 15:52:35 +0000 (08:52 -0700)
commit5791c55d426ee6c3e31053b4623ce7f4dc271827
treeef039183cbec5ad495dfe0a8d82eb25e3cb5dbeb
parentafbe5a11aec18645d965988c4bac98e7d900d45f
igb: Replace GFP_ATOMIC with GFP_KERNEL in igb_sw_init()

igb_sw_init() is never called in atomic context.
It calls kzalloc() and kcalloc() 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>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c