Re: [PATCH v2 1/2] soc: qcom: pmic_glink: don't traverse clients list without a lock

From: Mukesh Ojha
Date: Fri Apr 05 2024 - 12:58:32 EST




On 4/3/2024 8:40 AM, Dmitry Baryshkov wrote:
Take the client_lock before traversing the clients list at the
pmic_glink_state_notify_clients() function. This is required to keep the
list traversal safe from concurrent modification.

Fixes: 58ef4ece1e41 ("soc: qcom: pmic_glink: Introduce base PMIC GLINK driver")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>

Nice catch.

Reviewed-by: Mukesh Ojha <quic_mojha@xxxxxxxxxxx>

-Mukesh