linux-stable/drivers/soc/renesas
Li Yang 62cb9c468d soc: renesas: renesas-soc: Release 'chipid' from ioremap()
[ Upstream commit fc187a46a8 ]

Smatch reports:

drivers/soc/renesas/renesas-soc.c:536 renesas_soc_init() warn:
'chipid' from ioremap() not released on lines: 475.

If soc_dev_atrr allocation is failed, function renesas_soc_init()
will return without releasing 'chipid' from ioremap().

Fix this by adding function iounmap().

Fixes: cb5508e47e ("soc: renesas: Add support for reading product revision for RZ/G2L family")
Signed-off-by: Li Yang <lidaxian@hust.edu.cn>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230331095545.31823-1-lidaxian@hust.edu.cn
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:12 +09:00
..
Kconfig soc: renesas: Identify RZ/Five SoC 2022-08-16 09:24:44 +02:00
Makefile soc: renesas: r8a779g0-sysc: Add r8a779g0 support 2022-04-25 10:58:58 +02:00
r8a774a1-sysc.c
r8a774b1-sysc.c
r8a774c0-sysc.c
r8a774e1-sysc.c
r8a779a0-sysc.c soc: renesas: r8a779a0-sysc: Fix A2DP1 and A2CV[2357] PDR values 2022-06-13 11:43:50 +02:00
r8a779f0-sysc.c
r8a779g0-sysc.c soc: renesas: r8a779g0-sysc: Add r8a779g0 support 2022-04-25 10:58:58 +02:00
r8a7742-sysc.c
r8a7743-sysc.c
r8a7745-sysc.c
r8a7779-sysc.c
r8a7790-sysc.c
r8a7791-sysc.c
r8a7792-sysc.c
r8a7794-sysc.c
r8a7795-sysc.c
r8a7796-sysc.c
r8a77470-sysc.c
r8a77965-sysc.c
r8a77970-sysc.c
r8a77980-sysc.c
r8a77990-sysc.c
r8a77995-sysc.c
r9a06g032-smp.c
rcar-gen4-sysc.c soc: renesas: r8a779g0-sysc: Add r8a779g0 support 2022-04-25 10:58:58 +02:00
rcar-gen4-sysc.h soc: renesas: rcar-sysc: Optimize rcar_sysc_area struct sizes 2022-06-13 11:43:50 +02:00
rcar-rst.c soc: renesas: rcar-rst: Add support for R-Car V4H 2022-04-25 10:58:58 +02:00
rcar-sysc.c
rcar-sysc.h soc: renesas: rcar-sysc: Optimize rcar_sysc_area struct sizes 2022-06-13 11:43:50 +02:00
renesas-soc.c soc: renesas: renesas-soc: Release 'chipid' from ioremap() 2023-05-11 23:03:12 +09:00
rmobile-sysc.c