]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 23 Mar 2022 10:49:01 +0000 (11:49 +0100)
commit0927d1ddd990f3bc1e2536022833f822ad8fd615
tree3105ee47cd161b7e2ca27758c58ec6edc57be0fd
parent610800bfe9fca5b93b1156a285fca4045392b1dd
ice: Don't use GFP_KERNEL in atomic context

BugLink: https://bugs.launchpad.net/bugs/1966056
[ Upstream commit 3d97f1afd8d831e0c0dc1157418f94b8faa97b54 ]

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

Use GFP_ATOMIC instead of GFP_KERNEL when allocating some memory.

Fixes: 348048e724a0 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/intel/ice/ice_main.c