git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] mptfusion: mpt_detach is called properly at the time of rmmod
[pandora-kernel.git]
/
drivers
/
message
/
fusion
/
mptsas.c
diff --git
a/drivers/message/fusion/mptsas.c
b/drivers/message/fusion/mptsas.c
index
e5e9bf3
..
674461f
100644
(file)
--- a/
drivers/message/fusion/mptsas.c
+++ b/
drivers/message/fusion/mptsas.c
@@
-5073,6
+5073,12
@@
static void __devexit mptsas_remove(struct pci_dev *pdev)
struct mptsas_portinfo *p, *n;
int i;
+ if (!ioc->sh) {
+ printk(MYIOC_s_INFO_FMT "IOC is in Target mode\n", ioc->name);
+ mpt_detach(pdev);
+ return;
+ }
+
mptsas_shutdown(pdev);
mptsas_del_device_components(ioc);