Message ID | 20240402133043.56322-3-tariqt@nvidia.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 9ac9299d41f6b67c9b99f1522824572e50a292f8 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | mlx5 misc patches | expand |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c b/drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c index 08a75654f5f1..5bf8318cc48b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c @@ -359,7 +359,7 @@ int mlx5e_self_test_fill_strings(struct mlx5e_priv *priv, u8 *data) if (st.cond_func && st.cond_func(priv)) continue; if (data) - strcpy(data + count * ETH_GSTRING_LEN, st.name); + ethtool_puts(&data, st.name); count++; } return count;