[38/40] SCSI: mpt2sas: Added missing mpt2sas_base_detach call from scsih_remove context

From: Greg KH
Date: Tue Jan 10 2012 - 18:24:43 EST


3.0-stable review patch. If anyone has any objections, please let me know.

------------------

From: "kashyap.desai@xxxxxxx" <kashyap.desai@xxxxxxx>

commit 9ae89b0296e275d5a556068b40b7c2557a556a85 upstream.

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@xxxxxxx>
Signed-off-by: James Bottomley <JBottomley@xxxxxxxxxxxxx>

---
drivers/scsi/mpt2sas/mpt2sas_scsih.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -7211,6 +7211,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);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/