Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e74a1db0 authored by Haggai Abramonvsky's avatar Haggai Abramonvsky Committed by David S. Miller
Browse files

net/mlx5_core: Check the return bitmask when querying ISSI



The determination of the supported ISSI versions should be conditioned
on the returned mask, and not only on the return status of the query
ISSI command, fix that.

Signed-off-by: default avatarHaggai Abramovsky <hagaya@mellanox.com>
Signed-off-by: default avatarMajd Dibbiny <majd@mellanox.com>
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 01949d01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -654,7 +654,7 @@ static int mlx5_core_set_issi(struct mlx5_core_dev *dev)
		dev->issi = 1;

		return 0;
	} else if (sup_issi & (1 << 0)) {
	} else if (sup_issi & (1 << 0) || !sup_issi) {
		return 0;
	}