]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit603b7bcff824740500ddfa001d7a7168b0b38542
tree58cc8e39cf706ae2a12da898837cb2441890f0f5
parentd14fcb8d877caf1b8d6bd65d444bf62b21f2070c
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: e126ba97dba9 ("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