projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0d096b
)
mtip32xx: return 0 from pci probe in case of rebuild
author
Asai Thambi S P
<asamymuthupa@micron.com>
Wed, 3 Apr 2013 14:24:35 +0000
(19:54 +0530)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 3 Apr 2013 19:54:02 +0000
(21:54 +0200)
Fix to return 0 from pci probe in case of rebuild. If not, pci consider
probe has failed, and crash during rmmod.
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/mtip32xx/mtip32xx.c
b/drivers/block/mtip32xx/mtip32xx.c
index 30f23363465039971f9880f35cd7577ae182f4a5..ce4e47dcc1530c8cdc809fd8a861aeff39e36318 100644
(file)
--- a/
drivers/block/mtip32xx/mtip32xx.c
+++ b/
drivers/block/mtip32xx/mtip32xx.c
@@
-4302,6
+4302,8
@@
static int mtip_pci_probe(struct pci_dev *pdev,
instance++;
if (rv != MTIP_FTL_REBUILD_MAGIC)
set_bit(MTIP_DDF_INIT_DONE_BIT, &dd->dd_flag);
+ else
+ rv = 0; /* device in rebuild state, return 0 from probe */
goto done;
block_initialize_err: