Commit c8457300 authored by Georgi Djakov's avatar Georgi Djakov
Browse files

interconnect: qcom: sdm845: Walk the list safely on node removal



As we will remove items off the list using list_del(), we need to use a safe
version of the list_for_each_entry().

In addition to the above, instead of duplicating the code, call qnoc_remove()
directly from the probe function error path.

Fixes: b5d2f741 ("interconnect: qcom: Add sdm845 interconnect provider driver")
Reported-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
Cc: stable@vger.kernel.org # v5.1+
parent 070b3902
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment