mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
net/mlx5: Restore missing scheduling node cleanup on vport enable failure
Restore the __esw_qos_free_node() call removed by the offending commit.
Fixes: 97733d1e00
("net/mlx5: Add traffic class scheduling support for vport QoS")
Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250820133209.389065-7-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3c114fb2af
commit
51b17c98e3
@ -1122,6 +1122,7 @@ static int mlx5_esw_qos_vport_enable(struct mlx5_vport *vport, enum sched_node_t
|
|||||||
vport->qos.sched_node = sched_node;
|
vport->qos.sched_node = sched_node;
|
||||||
err = esw_qos_vport_enable(vport, type, parent, extack);
|
err = esw_qos_vport_enable(vport, type, parent, extack);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
__esw_qos_free_node(sched_node);
|
||||||
esw_qos_put(esw);
|
esw_qos_put(esw);
|
||||||
vport->qos.sched_node = NULL;
|
vport->qos.sched_node = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user