linux-stable/drivers/net/ethernet/mscc
Nishka Dasgupta 64fc973dee 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>
2019-07-16 12:38:17 -07:00
..
Kconfig net: mscc: ocelot: make use of SerDes PHYs for handling their configuration 2018-10-05 14:36:44 -07:00
Makefile net: mscc: ocelot: Hardware ofload for tc flower filter 2019-06-02 13:49:49 -07:00
ocelot.c net: mscc: ocelot: Add support for tcam 2019-06-02 13:49:49 -07:00
ocelot.h net: mscc: ocelot: Add support for tcam 2019-06-02 13:49:49 -07:00
ocelot_ace.c ocelot: remove unused variable 'rc' in vcap_cmd() 2019-06-09 20:11:53 -07:00
ocelot_ace.h drivers: net: use flow block API 2019-07-09 14:38:50 -07:00
ocelot_ana.h
ocelot_board.c net: ethernet: mscc: ocelot_board: Add of_node_put() before return 2019-07-16 12:38:17 -07:00
ocelot_dev.h
ocelot_flower.c net: flow_offload: rename tc_cls_flower_offload to flow_cls_offload 2019-07-09 14:38:51 -07:00
ocelot_io.c
ocelot_police.c net: mscc: ocelot: Implement port policers via tc command 2019-05-29 21:37:49 -07:00
ocelot_police.h net: mscc: ocelot: Implement port policers via tc command 2019-05-29 21:37:49 -07:00
ocelot_qs.h
ocelot_qsys.h
ocelot_regs.c net: mscc: ocelot: Add support for tcam 2019-06-02 13:49:49 -07:00
ocelot_rew.h
ocelot_s2.h net: mscc: ocelot: Add support for tcam 2019-06-02 13:49:49 -07:00
ocelot_sys.h
ocelot_tc.c net: flow_offload: add flow_block_cb_is_busy() and use it 2019-07-09 14:38:50 -07:00
ocelot_tc.h net: mscc: ocelot: Implement port policers via tc command 2019-05-29 21:37:49 -07:00
ocelot_vcap.h net: mscc: ocelot: Add support for tcam 2019-06-02 13:49:49 -07:00