]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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, 15 Apr 2022 12:14:54 +0000 (14:14 +0200)
commit44110a8da799c412501cef1827467d64c35aad64
tree2786841b4d60c0e2506bdfef7c9f1dbe650a7cab
parent10b486c1cf8b979c92a526bdb391d9b713e0f55e
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