We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d792e5f commit ad436b9Copy full SHA for ad436b9
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
@@ -49,7 +49,7 @@ void mlx5e_ethtool_get_drvinfo(struct mlx5e_priv *priv,
49
count = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
50
"%d.%d.%04d (%.16s)", fw_rev_maj(mdev),
51
fw_rev_min(mdev), fw_rev_sub(mdev), mdev->board_id);
52
- if (count == sizeof(drvinfo->fw_version))
+ if (count >= sizeof(drvinfo->fw_version))
53
snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
54
"%d.%d.%04d", fw_rev_maj(mdev),
55
fw_rev_min(mdev), fw_rev_sub(mdev));
0 commit comments