Revision 64fc973dee130019b86f2c4634a10d7a3158687e authored by Nishka Dasgupta on 16 July 2019, 05:52:19 UTC, committed by David S. Miller on 16 July 2019, 19:38:17 UTC
Each iteration of for_each_available_child_of_node puts the previous
node, but in the case of a return from the middle of the loop, there is
no put, thus causing a memory leak. Hence add an of_node_put before the
return in two places.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3cd6e20
History
File Mode Size
apparmor
integrity
keys
loadpin
safesetid
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 10.6 KB
Kconfig.hardening -rw-r--r-- 7.6 KB
Makefile -rw-r--r-- 1.1 KB
commoncap.c -rw-r--r-- 38.9 KB
device_cgroup.c -rw-r--r-- 20.5 KB
inode.c -rw-r--r-- 10.4 KB
lsm_audit.c -rw-r--r-- 10.6 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 58.0 KB

back to top