interconnect: qcom: qcs404: 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: 5e4e6c4d ("interconnect: qcom: Add QCS404 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.4
Loading
Please sign in to comment