diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-05-30 05:14:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-31 18:18:15 -0400 |
commit | 30f7c73bed749814f4985b1ce4566fe64b9c25f0 (patch) | |
tree | f81846f040630122ca75e98d56aa5752396d36f2 /drivers | |
parent | 76f901eb4659779ecacd0e4eba49f55442daef53 (diff) |
net/mlx4_core: Fix the slave_id out-of-range test in mlx4_eq_int
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/eq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/eq.c b/drivers/net/ethernet/mellanox/mlx4/eq.c index 3b6f8efbf141..bce98d9c0039 100644 --- a/drivers/net/ethernet/mellanox/mlx4/eq.c +++ b/drivers/net/ethernet/mellanox/mlx4/eq.c | |||
@@ -426,7 +426,7 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq *eq) | |||
426 | 426 | ||
427 | mlx4_dbg(dev, "FLR event for slave: %d\n", flr_slave); | 427 | mlx4_dbg(dev, "FLR event for slave: %d\n", flr_slave); |
428 | 428 | ||
429 | if (flr_slave > dev->num_slaves) { | 429 | if (flr_slave >= dev->num_slaves) { |
430 | mlx4_warn(dev, | 430 | mlx4_warn(dev, |
431 | "Got FLR for unknown function: %d\n", | 431 | "Got FLR for unknown function: %d\n", |
432 | flr_slave); | 432 | flr_slave); |