diff options
author | Pan Bian <bianpan2016@163.com> | 2021-01-21 12:49:07 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-03-30 05:01:27 +0200 |
commit | ac6ad7c2a862d682bb584a4bc904d89fa7721af8 (patch) | |
tree | a4f491a3caf7930ca08a5569f837d081ba622b8e /drivers/bus/sunxi-rsb.c | |
parent | dt-bindings: firmware: scm: Add sc7280 support (diff) | |
download | linux-ac6ad7c2a862d682bb584a4bc904d89fa7721af8.tar.xz linux-ac6ad7c2a862d682bb584a4bc904d89fa7721af8.zip |
bus: qcom: Put child node before return
Put child node before return to fix potential reference count leak.
Generally, the reference count of child is incremented and decremented
automatically in the macro for_each_available_child_of_node() and should
be decremented manually if the loop is broken in loop body.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Fixes: 335a12754808 ("bus: qcom: add EBI2 driver")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210121114907.109267-1-bianpan2016@163.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/bus/sunxi-rsb.c')
0 files changed, 0 insertions, 0 deletions