diff options
author | Roland Dreier <rolandd@cisco.com> | 2007-06-02 07:16:02 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-06-07 11:51:58 -0700 |
commit | 2c5cb2355843f9958e19a4b243456be92f97c73b (patch) | |
tree | 1c793ff7d6a1805a97c8e6d709a8b72a2df5d454 /drivers/net/mlx4/eq.c | |
parent | b581401ed0cc83a4483ed39c00a14a60bacecc3a (diff) | |
download | linux-3.10-2c5cb2355843f9958e19a4b243456be92f97c73b.tar.gz linux-3.10-2c5cb2355843f9958e19a4b243456be92f97c73b.tar.bz2 linux-3.10-2c5cb2355843f9958e19a4b243456be92f97c73b.zip |
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: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/net/mlx4/eq.c')
-rw-r--r-- | drivers/net/mlx4/eq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/mlx4/eq.c b/drivers/net/mlx4/eq.c index 0f11adb8eb4..27a82cecd69 100644 --- a/drivers/net/mlx4/eq.c +++ b/drivers/net/mlx4/eq.c @@ -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) |