]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
[SCSI] mpt2sas: Added missing mpt2sas_base_detach call from scsih_remove context
authorkashyap.desai@lsi.com <kashyap.desai@lsi.com>
Thu, 4 Aug 2011 11:17:50 +0000 (16:47 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Dec 2011 16:25:18 +0000 (11:25 -0500)
mpt2sas_base_detach() call was removed from _scsih_remove() while
doing some code shuffling.  Mainly when we work on adding code for
scsih_shutdown().  I have added back mpt2sas_base_detach() which will
get callled from _scsih_remove().

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c

index fd81c7f17944974f32b652777cf12e0ad0a3c5fd..4066f1e5d53c5eccb176971f9fe004a8a996d25c 100644 (file)
@@ -7349,6 +7349,7 @@ _scsih_remove(struct pci_dev *pdev)
        }
 
        sas_remove_host(shost);
+       mpt2sas_base_detach(ioc);
        list_del(&ioc->list);
        scsi_remove_host(shost);
        scsi_host_put(shost);