]> git.baikalelectronics.ru Git - kernel.git/commit
interconnect: qcom: qcs404: Walk the list safely on node removal
authorGeorgi Djakov <georgi.djakov@linaro.org>
Thu, 12 Dec 2019 07:53:31 +0000 (09:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Dec 2019 09:28:53 +0000 (10:28 +0100)
commit36c72d161b549291ed32025fad39820513228efa
tree8e3229d80745a3f9248ada56eae90f74b800e78c
parentc248fedadc030104d1dba8fcbcf555058b9c931d
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 the
safe version of list_for_each_entry().

Fixes: 0b3d37ac8e1b ("interconnect: qcom: Add QCS404 interconnect provider driver")
Reported-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Cc: <stable@vger.kernel.org> # v5.4
Link: https://lore.kernel.org/r/20191212075332.16202-4-georgi.djakov@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/qcom/qcs404.c