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:Dmitry Osipenko <digetx@gmail.com> Signed-off-by:
Georgi Djakov <georgi.djakov@linaro.org> Cc: stable@vger.kernel.org # v5.1+
Loading
Please sign in to comment