Commit 3d97f1af authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Tony Nguyen
Browse files

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: 348048e7 ("ice: Implement iidc operations")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: default avatarLeszek Kaliszczuk <leszek.kaliszczuk@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 97b01291
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3034,7 +3034,7 @@ static irqreturn_t ice_misc_intr(int __always_unused irq, void *data)
		struct iidc_event *event;

		ena_mask &= ~ICE_AUX_CRIT_ERR;
		event = kzalloc(sizeof(*event), GFP_KERNEL);
		event = kzalloc(sizeof(*event), GFP_ATOMIC);
		if (event) {
			set_bit(IIDC_EVENT_CRIT_ERR, event->type);
			/* report the entire OICR value to AUX driver */