diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-05-30 09:14:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-31 18:18:15 -0400 |
commit | 30f7c73bed749814f4985b1ce4566fe64b9c25f0 (patch) | |
tree | f81846f040630122ca75e98d56aa5752396d36f2 /drivers | |
parent | 76f901eb4659779ecacd0e4eba49f55442daef53 (diff) | |
download | linux-30f7c73bed749814f4985b1ce4566fe64b9c25f0.tar.gz linux-30f7c73bed749814f4985b1ce4566fe64b9c25f0.tar.bz2 linux-30f7c73bed749814f4985b1ce4566fe64b9c25f0.zip |
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) 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); |