mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Reviewed-by: Or Gerlitz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
76f901eb46
commit
30f7c73bed
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue