mptbase: fixup error handling paths in mpt_attach()
authorEwan D. Milne <emilne@redhat.com>
Tue, 23 Feb 2016 14:00:12 +0000 (09:00 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commite8c61ecc1b1658f887e74a5be2cb9f9b79baa325
treece3df6a7074e952abd7fb874628c4fa2700d4dfe
parentf50abb9b63b1d8773e1ce32115701c06416e6f91
mptbase: fixup error handling paths in mpt_attach()

mpt_attach() was not checking for the failure to create fw_event_q.
Also, iounmap() was not being called in all error cases after ioremap()
had been called by mpt_mapresources().

Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Reported-by: Insu Yun <wuninsu@gmail.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptbase.c