Wei Yongjun 740efb64ca irqchip/wpcm450: Fix memory leak in wpcm450_aic_of_init()
[ Upstream commit 4208d4faf36573a507b5e5de17abe342e9276759 ]

If of_iomap() failed, 'aic' should be freed before return. Otherwise
there is a memory leak.

Fixes: fead4dd49663 ("irqchip: Add driver for WPCM450 interrupt controller")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221115092532.1704032-1-weiyongjun@huaweicloud.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:14:03 +01:00
..
2021-03-22 04:23:14 +01:00
2021-03-22 04:23:14 +01:00
2021-03-22 04:23:14 +01:00
2021-03-22 04:23:14 +01:00
2021-03-22 04:23:14 +01:00
2022-08-17 14:23:01 +02:00
2021-04-26 12:30:36 -07:00