]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/83xx: Add missing of_node_put() in mpc832x_spi_init()
authorLiang He <windhl@126.com>
Tue, 21 Jun 2022 08:09:32 +0000 (16:09 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:24 +0000 (17:30 +1000)
commit24156df00dbbc673d9b2d31a336c3aba537d2c60
treef0ddfec0f47443574b695e6bc5d9ff77ea93c289
parentcc0dd82c18559184e009bef8d0353d008013a813
powerpc/83xx: Add missing of_node_put() in mpc832x_spi_init()

In mpc832x_spi_init(), hold the reference returned by
of_find_compatible_node() and use it to call of_node_put() for refcount
balance.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220621080932.4081935-1-windhl@126.com
arch/powerpc/platforms/83xx/mpc832x_rdb.c