linux-stable/arch/xtensa/platforms/xtfpga
Liang He a52972ee70 xtensa: xtfpga: Fix refcount leak bug in setup
commit 173940b3ae 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>
2022-06-29 08:58:48 +02:00
..
include/platform xtensa: move PLATFORM_NR_IRQS to Kconfig 2018-08-20 12:28:04 -07:00
lcd.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
setup.c xtensa: xtfpga: Fix refcount leak bug in setup 2022-06-29 08:58:48 +02:00