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
File | Mode | Size |
---|---|---|
encrypted-keys | ||
Kconfig | -rw-r--r-- | 4.1 KB |
Makefile | -rw-r--r-- | 678 bytes |
big_key.c | -rw-r--r-- | 10.1 KB |
compat.c | -rw-r--r-- | 4.2 KB |
compat_dh.c | -rw-r--r-- | 1.1 KB |
dh.c | -rw-r--r-- | 8.4 KB |
gc.c | -rw-r--r-- | 9.8 KB |
internal.h | -rw-r--r-- | 11.7 KB |
key.c | -rw-r--r-- | 30.8 KB |
keyctl.c | -rw-r--r-- | 45.7 KB |
keyctl_pkey.c | -rw-r--r-- | 6.9 KB |
keyring.c | -rw-r--r-- | 47.6 KB |
permission.c | -rw-r--r-- | 2.7 KB |
persistent.c | -rw-r--r-- | 4.3 KB |
proc.c | -rw-r--r-- | 7.7 KB |
process_keys.c | -rw-r--r-- | 23.3 KB |
request_key.c | -rw-r--r-- | 21.4 KB |
request_key_auth.c | -rw-r--r-- | 7.1 KB |
sysctl.c | -rw-r--r-- | 1.6 KB |
trusted.c | -rw-r--r-- | 29.9 KB |
user_defined.c | -rw-r--r-- | 4.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...