Skip to contentSkip to conversation

mtip32xx: return 0 from pci probe in case of rebuild

PATCH In review Asai Thambi S P 1 participant 1 message Apr 3, 2013 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 mtip32xx: return 0 from pci probe in case of rebuild

Fix to return 0 from pci probe in case of rebuild. If not, pci consider probe has failed, and crash during rmmod.

---
 drivers/block/mtip32xx/mtip32xx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/block/mtip32xx/mtip32xx.c +2 -0
index 5becdaa..7e1aeb3 100644
@@ -4300,6 +4300,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:
Signature · 1 line
1.7.1