android_kernel_samsung_a7y1.../arch/arm64
Wen Yang d14f52ff7d arm64: cpu_ops: fix a leaked reference by adding missing of_node_put
[ Upstream commit 92606ec9285fb84cd9b5943df23f07d741384bfc ]

The call to of_get_next_child returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
  ./arch/arm64/kernel/cpu_ops.c:102:1-7: ERROR: missing of_node_put;
  acquired a node pointer with refcount incremented on line 69, but
  without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 18:19:54 +02:00
..
boot dts: remove dm-verity 2020-04-04 16:47:07 +05:30
configs Revert "defcon: NEVER_ENFORCE" 2020-04-06 19:40:17 +05:30
crypto A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
include arm64: futex: Restore oldval initialization to work around buggy compilers 2020-04-06 15:54:18 +02:00
kernel arm64: cpu_ops: fix a leaked reference by adding missing of_node_put 2020-04-06 18:19:54 +02:00
kvm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lib A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mach-exynos Introduce Exynos dtbtool to the Linux build system 2020-03-27 22:20:07 +05:30
mm arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals 2020-04-06 13:42:12 +02:00
net A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig arm64: support keyctl() system call in 32-bit mode 2020-04-06 13:03:41 +02:00
Kconfig.debug A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig.platforms A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile Introduce Exynos dtbtool to the Linux build system 2020-03-27 22:20:07 +05:30