]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit385f004972872352fbdeff6a7ffdc9d58ca3909c
tree2be77bed9f4a93f3c8cba3c5ded27bac8e92f9d4
parent7a320feecb1e195bcc02a80a88246eb58f0b93d4
[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