[SCSI] Fusion MPT: disable pci device when mpt map resoures failed
authorHanjun Guo <guohanjun@huawei.com>
Sat, 11 Aug 2012 02:58:36 +0000 (10:58 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 16:59:29 +0000 (17:59 +0100)
commit20953a6277c91d5edf2e494ba5035d07ff4d1885
tree2be77bed9f4a93f3c8cba3c5ded27bac8e92f9d4
parent6ed33a4a0b86da42638b5f6a0bb9f9f9aee89f60
[SCSI] Fusion MPT: disable pci device when mpt map resoures failed

when probe a pci device, first we enable it, and disable it when
some error happened in the following process, because the power
state of the device is set to D0, and if MSI is disabled,
we will allocate irq and register gsi for this device in the enable process.

In function mpt_mapresources(MPT_ADAPTER *ioc), it forgot disable the
pci device when error happened, the irq and gsi will never be released.
this patch will fix it.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/message/fusion/mptbase.c