Home
last modified time | relevance | path

Searched hist:fc187a46a8e682f0f1167b230792b88de01ceaa0 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/soc/renesas/
H A Drenesas-soc.cdiff fc187a46a8e682f0f1167b230792b88de01ceaa0 Fri Mar 31 11:55:44 CEST 2023 Li Yang <lidaxian@hust.edu.cn> soc: renesas: renesas-soc: Release 'chipid' from ioremap()

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: cb5508e47e60 ("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>