Skip to content

Commit

Permalink
net/mlx4_core: Fix the slave_id out-of-range test in mlx4_eq_int
Browse files Browse the repository at this point in the history
Ths fixes the comparison in the FLR (Function Level Reset) event case.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jack Morgenstein authored and David S. Miller committed May 31, 2012
1 parent 76f901e commit 30f7c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx4/eq.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq *eq)

mlx4_dbg(dev, "FLR event for slave: %d\n", flr_slave);

if (flr_slave > dev->num_slaves) {
if (flr_slave >= dev->num_slaves) {
mlx4_warn(dev,
"Got FLR for unknown function: %d\n",
flr_slave);
Expand Down

0 comments on commit 30f7c73

Please sign in to comment.