Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c5cb235 authored by Roland Dreier's avatar Roland Dreier
Browse files

mlx4_core: Free catastrophic error MSI-X interrupt with correct dev_id



We need to pass the same dev_id to free_irq() and request_irq().  When
using MSI-X, the MLX4_EQ_CATAS interrupt uses a different dev_id from
the other interrupts.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent b581401e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -490,9 +490,11 @@ static void mlx4_free_irqs(struct mlx4_dev *dev)

	if (eq_table->have_irq)
		free_irq(dev->pdev->irq, dev);
	for (i = 0; i < MLX4_NUM_EQ; ++i)
	for (i = 0; i < MLX4_EQ_CATAS; ++i)
		if (eq_table->eq[i].have_irq)
			free_irq(eq_table->eq[i].irq, eq_table->eq + i);
	if (eq_table->eq[MLX4_EQ_CATAS].have_irq)
		free_irq(eq_table->eq[MLX4_EQ_CATAS].irq, dev);
}

static int __devinit mlx4_map_clr_int(struct mlx4_dev *dev)