]> git.baikalelectronics.ru Git - kernel.git/commit
can: rcar_canfd: Add missing of_node_put() in rcar_canfd_probe()
authorLiang He <windhl@126.com>
Tue, 12 Jul 2022 09:56:23 +0000 (17:56 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 20 Jul 2022 08:20:19 +0000 (10:20 +0200)
commit165606c3d30804d947b7d42f6eac04596fcfbdf5
treed5b35f019f44b6f3459214efa647a0a73f10e949
parent16e4ddbd1ddca94445936c71ba2d95bc7e95517d
can: rcar_canfd: Add missing of_node_put() in rcar_canfd_probe()

We should use of_node_put() for the reference returned by
of_get_child_by_name() which has increased the refcount.

Fixes: a776f6c590c5 ("can: rcar_canfd: Add support for r8a779a0 SoC")
Link: https://lore.kernel.org/all/20220712095623.364287-1-windhl@126.com
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c