]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: Fix an IS_ERR() vs NULL bug in esw_qos_move_node()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 15 Jul 2025 23:01:30 +0000 (18:01 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Jul 2025 01:37:48 +0000 (18:37 -0700)
commit49be1e245ea3e3515c5989ce1af215d8500dec85
tree71fb8cbb383065951621c829507e676803769bc2
parentc2fe3b2a7c71adccff9d7f651004405fa413bf17
net/mlx5: Fix an IS_ERR() vs NULL bug in esw_qos_move_node()

The __esw_qos_alloc_node() function returns NULL on error.  It doesn't
return error pointers.  Update the error checking to match.

Fixes: 96619c485fa6 ("net/mlx5: Add support for setting tc-bw on nodes")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/0ce4ec2a-2b5d-4652-9638-e715a99902a7@sabinyo.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c