diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-11-23 08:36:16 +0000 |
|---|---|---|
| committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-12-02 16:53:08 -0800 |
| commit | baf5c001300e653ab89310b755e5aac551ce822d (patch) | |
| tree | 3a9ffba3ce597ad675198eed05992a1f97534647 /drivers | |
| parent | d2b8c7ba3c795a4ef8de48009fd13735b1a428e5 (diff) | |
| download | linux-next-baf5c001300e653ab89310b755e5aac551ce822d.tar.gz linux-next-baf5c001300e653ab89310b755e5aac551ce822d.zip | |
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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c b/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c index eead33defa80..11bbcd5f5b8b 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c @@ -590,6 +590,7 @@ static int esw_qos_create(struct mlx5_eswitch *esw, struct netlink_ext_ack *exta if (IS_ERR(esw->qos.group0)) { esw_warn(dev, "E-Switch create rate group 0 failed (%ld)\n", PTR_ERR(esw->qos.group0)); + err = PTR_ERR(esw->qos.group0); goto err_group0; } } |
