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:Dmitry Osipenko <digetx@gmail.com> Cc: Brian Masney <masneyb@onstation.org> Signed-off-by:
Georgi Djakov <georgi.djakov@linaro.org>
Loading
Please sign in to comment