]> git.baikalelectronics.ru Git - kernel.git/commit
mvsas: always iounmap resources
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 22 May 2015 09:15:02 +0000 (11:15 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 12 Aug 2015 18:18:47 +0000 (11:18 -0700)
commit2d892c4332575839144b534f40d60b3a01ef523e
tree91cf9b928b94dd34894538fc97f4ef8273339ac8
parente9799c9a3b34085775b80db92196bc8752639044
mvsas: always iounmap resources

In case pci_resource_start() or pci_resource_len() reutrn 0, mvsas_ioremap
returns without doing an iounmap() of mvi->regs_ex.

Found by the cocinelle tool.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/mvsas/mv_init.c