irqchip/nvic: Release nvic_base upon failure
authorSouptick Joarder (HPE) <jrdr.linux@gmail.com>
Fri, 18 Feb 2022 16:33:03 +0000 (22:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:56 +0000 (14:23 +0200)
commit757322b5aba928afb98594e972168c39deaa9161
tree6c9c451e89d938ac97199f1e0c6a40418bd95b81
parentdabfc878ef6f1b4597c9c0d719e6d7b919e64534
irqchip/nvic: Release nvic_base upon failure

[ Upstream commit e414c25e3399b2b3d7337dc47abccab5c71b7c8f ]

smatch warning was reported as below ->

smatch warnings:
drivers/irqchip/irq-nvic.c:131 nvic_of_init()
warn: 'nvic_base' not released on lines: 97.

Release nvic_base upon failure.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220218163303.33344-1-jrdr.linux@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-nvic.c