]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: zynq: add missing of_node_put before return
authorWang Qing <wangqing@vivo.com>
Mon, 13 Dec 2021 09:44:20 +0000 (01:44 -0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 12 Jan 2022 05:47:32 +0000 (23:47 -0600)
commit9144fec5bd9f4eb64ae67ca7774bb1ae97a816bd
tree853fccc3fafe00a99b6c9d2250add42c95230e4a
parent75fb0bb9cbb42a40a4a04065897a68eba0dfe948
mailbox: zynq: add missing of_node_put before return

Fix following coccicheck warning:
WARNING: Function "for_each_available_child_of_node"
should have of_node_put() before return.

Early exits from for_each_available_child_of_node should decrement the
node reference counter.

Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/zynqmp-ipi-mailbox.c