]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix error return code in esw_qos_create()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Nov 2021 08:36:16 +0000 (08:36 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 3 Dec 2021 00:53:08 +0000 (16:53 -0800)
commit19c1cc6415b560cc50e1dd77a9b36f1c8ad8326d
tree3a9ffba3ce597ad675198eed05992a1f97534647
parent9c0824bb7e6850a2dd1d208ce9b92df8e5f92a04
net/mlx5: Fix error return code in esw_qos_create()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 4f9140030318 ("net/mlx5: E-switch, Create QoS on demand")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c