]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Don't use GFP_KERNEL in atomic context
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 16 Jan 2022 18:46:20 +0000 (19:46 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 8 Mar 2022 21:31:09 +0000 (13:31 -0800)
commitb6ee9ad267890636e7478ca238f05af4d8b13c34
tree0f0c1bbba5ca6dc6a1e3df35f62b4f7492efd63d
parentc88840ae6aadea1e09e4f436a980ff0df35a5c7a
ice: Don't use GFP_KERNEL in atomic context

ice_misc_intr() is an irq handler. It should not sleep.

Use GFP_ATOMIC instead of GFP_KERNEL when allocating some memory.

Fixes: f316c8300c2f ("ice: Implement iidc operations")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: Leszek Kaliszczuk <leszek.kaliszczuk@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c