]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: LAG, MPESW, Fix missing complete() on devcom error
authorShay Drory <shayd@nvidia.com>
Tue, 30 Jun 2026 11:29:16 +0000 (14:29 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 3 Jul 2026 16:39:02 +0000 (18:39 +0200)
commitd4b85f9a668b9c44216bb78daf4ec1a915cc92d1
treeaecb2eacd6962bb18004bdd1731b2fa1dec44048
parent0f0e4ae6975c773f7854fc48932a267f6c79088f
net/mlx5: LAG, MPESW, Fix missing complete() on devcom error

mlx5_mpesw_work() returned without calling complete() when
mlx5_lag_get_devcom_comp() returned NULL. A caller that queued the
work and waited on mpesww->comp would block indefinitely.

Funnel the early-return path through a new "complete" label so the
waiter is always woken.

Fixes: b430c1b4f63b ("net/mlx5: Replace global mlx5_intf_lock with HCA devcom component lock")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260630112917.698313-3-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c