]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix incorrect raw command length parsing
authorAlex Vesker <valex@mellanox.com>
Fri, 25 May 2018 17:25:59 +0000 (20:25 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 26 Jun 2018 22:26:34 +0000 (15:26 -0700)
commit66fd8264644467bd940a17de5dcc3445157b024c
tree58cc8e39cf706ae2a12da898837cb2441890f0f5
parentc261236c251aa99ba31fd34d228fc118d22eaedc
net/mlx5: Fix incorrect raw command length parsing

The NULL character was not set correctly for the string containing
the command length, this caused failures reading the output of the
command due to a random length. The fix is to initialize the output
length string.

Fixes: 7c120481afcc ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c