From: kashyap.desai@lsi.com Date: Thu, 4 Aug 2011 11:17:50 +0000 (+0530) Subject: [SCSI] mpt2sas: Added missing mpt2sas_base_detach call from scsih_remove context X-Git-Tag: v2.6.39-400.9.0~825^2~35 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=828ff16322ba5be25385445c610af752a22767a4;p=users%2Fjedix%2Flinux-maple.git [SCSI] mpt2sas: Added missing mpt2sas_base_detach call from scsih_remove context 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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index fd81c7f17944..4066f1e5d53c 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c @@ -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);