Commit 17dd667e authored by Georgi Djakov's avatar Georgi Djakov
Browse files

interconnect: qcom: msm8974: 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, simplify the probe
function error path by calling msm8974_qnoc_remove() directly.

Fixes: 4e60a956 ("interconnect: qcom: add msm8974 driver")
Reported-by: default avatarDmitry Osipenko <digetx@gmail.com>
Cc: Brian Masney <masneyb@onstation.org>
Signed-off-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
parent 71cf50f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment