scsi: zorro7xx: Fix a resource leak in zorro7xx_remove_one()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 19 Mar 2022 07:01:24 +0000 (08:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:08:29 +0000 (09:08 +0200)
commit1e0c01319dedf1e63ec5df37ead048e17afd92ba
treed329845a2a5b0801e097bd49c99cbb43336ecf25
parentdd3a74d9e1b7ce143f0aec04da8691a764392f67
scsi: zorro7xx: Fix a resource leak in zorro7xx_remove_one()

[ Upstream commit 16ed828b872d12ccba8f07bcc446ae89ba662f9c ]

The error handling path of the probe releases a resource that is not freed
in the remove function. In some cases, a ioremap() must be undone.

Add the missing iounmap() call in the remove function.

Link: https://lore.kernel.org/r/247066a3104d25f9a05de8b3270fc3c848763bcc.1647673264.git.christophe.jaillet@wanadoo.fr
Fixes: 45804fbb00ee ("[SCSI] 53c700: Amiga Zorro NCR53c710 SCSI")
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/zorro7xx.c