diff options
author | Kory Maincent <kory.maincent@bootlin.com> | 2025-02-12 18:17:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 15:30:24 +0300 |
commit | 4abbe664a14eb65eb4a2e39b11fce66c36976820 (patch) | |
tree | c5ba183ef8aa2ece25ac5ec1df90bf79a8563ef4 /net/lapb/lapb_iface.c | |
parent | 384c8291f7ceda834bae1ee445057bdee7c1940d (diff) | |
download | linux-4abbe664a14eb65eb4a2e39b11fce66c36976820.tar.xz |
net: pse-pd: Fix deadlock in current limit functions
commit 488fb6effe03e20f38d34da7425de77bbd3e2665 upstream.
Fix a deadlock in pse_pi_get_current_limit and pse_pi_set_current_limit
caused by consecutive mutex_lock calls. One in the function itself and
another in pse_pi_get_voltage.
Resolve the issue by using the unlocked version of pse_pi_get_voltage
instead.
Fixes: e0a5e2bba38a ("net: pse-pd: Use power limit at driver side instead of current limit")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20250212151751.1515008-1-kory.maincent@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions