Home
last modified time | relevance | path

Searched hist:ac6ad7c2 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/bus/
H A Dqcom-ebi2.cac6ad7c2 Thu Jan 21 05:49:07 CST 2021 Pan Bian <bianpan2016@163.com> 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>