summaryrefslogtreecommitdiffstats
path: root/fs/openpromfs/inode.c
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-07-16 07:52:19 +0200
committerDavid S. Miller <davem@davemloft.net>2019-07-16 21:38:17 +0200
commit64fc973dee130019b86f2c4634a10d7a3158687e (patch)
tree93ca9b6b526cafe8d8c4599341ea2c2e5145f1dd /fs/openpromfs/inode.c
parentnet: ethernet: ti: cpsw: Add of_node_put() before return and break (diff)
downloadlinux-64fc973dee130019b86f2c4634a10d7a3158687e.tar.xz
linux-64fc973dee130019b86f2c4634a10d7a3158687e.zip
net: ethernet: mscc: ocelot_board: Add of_node_put() before return
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>
Diffstat (limited to 'fs/openpromfs/inode.c')
0 files changed, 0 insertions, 0 deletions