]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: xtfpga: Fix refcount leak bug in setup
authorLiang He <windhl@126.com>
Fri, 17 Jun 2022 11:53:23 +0000 (19:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 07:03:29 +0000 (09:03 +0200)
commit63b31516c7c3c24c0445305a1ddb300db8239d8f
treec50caa87b3a4e747afaa77fc7c04a2beb81ee6af
parent3417cfd7f36722788411e8eff0f767065d749f16
xtensa: xtfpga: Fix refcount leak bug in setup

commit b5d1721dbfed7d7560a7ad974da94d6f77f5383e upstream.

In machine_setup(), of_find_compatible_node() will return a node
pointer with refcount incremented. We should use of_node_put() when
it is not used anymore.

Cc: stable@vger.kernel.org
Signed-off-by: Liang He <windhl@126.com>
Message-Id: <20220617115323.4046905-1-windhl@126.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/platforms/xtfpga/setup.c