]> 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)
commitf8603b9984e3cb1a8e7356858174bef55ca00307
tree3a9ffba3ce597ad675198eed05992a1f97534647
parentdbf0067cdedafcb4b58d38e05b9a29fa556dffc3
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: ad9b757652d5 ("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