mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 00:17:44 +00:00
64fc973dee
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ocelot.c | ||
ocelot.h | ||
ocelot_ace.c | ||
ocelot_ace.h | ||
ocelot_ana.h | ||
ocelot_board.c | ||
ocelot_dev.h | ||
ocelot_flower.c | ||
ocelot_io.c | ||
ocelot_police.c | ||
ocelot_police.h | ||
ocelot_qs.h | ||
ocelot_qsys.h | ||
ocelot_regs.c | ||
ocelot_rew.h | ||
ocelot_s2.h | ||
ocelot_sys.h | ||
ocelot_tc.c | ||
ocelot_tc.h | ||
ocelot_vcap.h |