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)
commitbaf5c001300e653ab89310b755e5aac551ce822d
tree3a9ffba3ce597ad675198eed05992a1f97534647
parentd2b8c7ba3c795a4ef8de48009fd13735b1a428e5
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: 85c5f7c9200e ("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