]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: Check return status first when querying system_image_guid
authorRongwei Liu <rongweil@nvidia.com>
Fri, 8 Oct 2021 06:02:39 +0000 (09:02 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 16 Oct 2021 00:37:46 +0000 (17:37 -0700)
commit7b1b6d35f045d677f34f8085ac02827fe4080d7e
tree9594c0398f86f3489c39a0cc26581c68cfa4a2e5
parent0e6f3ef469bbf69ea6840aa4d15dcfc8ce978760
net/mlx5: Check return status first when querying system_image_guid

When querying system_image_guid from firmware, we should check return
value first. The buffer content is valid only if query succeed.

Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/vport.c