2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-26 07:35:44 +08:00
linux-next/drivers/soc/renesas
Nishka Dasgupta da51ceda8a soc: renesas: rcar-sysc: Add goto to of_node_put() before return
The local variable np in function rcar_sysc_pd_init takes the return
value of of_find_matching_node_and_match(), which gets a node but does
not put it.  If np is not put before the function returns, it may cause
a memory leak.

Hence, remove the return statement that does not immediately follow a
putting of np.  Replace it with a goto pointing to a pre-existing label
that first puts np and then returns the required value.

Issue found with Coccinelle.

Fixes: afa6f53df6 ("soc: renesas: rcar-sysc: Add support for fixing up power area tables")
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2019-08-19 14:56:14 +02:00
..
Kconfig soc: renesas: Enable RZ/A1 IRQC on RZ/A1H and RZ/A2M 2019-06-06 10:37:06 +02:00
Makefile ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
r8a774a1-sysc.c soc: renesas: rcar-sysc: Add r8a774a1 support 2018-09-12 10:19:06 +02:00
r8a774c0-sysc.c soc: renesas: r8a774c0-sysc: Fix initialization order of 3DG-{A,B} 2019-01-07 14:51:51 +01:00
r8a7743-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7745-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7779-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7790-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7791-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7792-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7794-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7795-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a7796-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r8a77470-sysc.c soc: renesas: rcar-sysc: Add r8a77470 support 2018-04-16 16:01:24 +02:00
r8a77965-sysc.c soc: renesas: r8a77965-sysc: Remove non-existent A3IR power domain 2018-11-30 11:22:29 +01:00
r8a77970-sysc.c soc: renesas: r8a77970-sysc: Correct names of A2DP/A2CN power domains 2018-11-30 11:22:30 +01:00
r8a77980-sysc.c soc: renesas: r8a77980-sysc: Correct A3VIP[012] power domain hierarchy 2018-11-30 11:22:30 +01:00
r8a77990-sysc.c soc: renesas: r8a77990-sysc: Fix initialization order of 3DG-{A,B} 2018-12-06 12:10:08 -08:00
r8a77995-sysc.c soc: renesas: convert to SPDX identifiers 2018-09-12 10:19:51 +02:00
r9a06g032-smp.c ARM: shmobile: Add the R9A06G032 SMP enabler driver 2018-07-20 13:44:04 +02:00
rcar-rst.c soc: renesas: rcar-rst: Add support for RZ/G1N 2018-09-17 10:46:31 +02:00
rcar-sysc.c soc: renesas: rcar-sysc: Add goto to of_node_put() before return 2019-08-19 14:56:14 +02:00
rcar-sysc.h soc: renesas: rcar-sysc: Add r8a774c0 support 2018-09-14 15:33:35 +02:00
renesas-soc.c soc: renesas: Identify R-Car M3-W ES1.3 2019-03-18 10:33:42 +01:00
rmobile-sysc.c ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00