summaryrefslogtreecommitdiffstats
path: root/drivers/block/mtip32xx
diff options
context:
space:
mode:
authorAsai Thambi S P <asamymuthupa@micron.com>2013-04-03 16:24:35 +0200
committerJens Axboe <axboe@kernel.dk>2013-04-03 21:54:02 +0200
commit6b06d35f3f63dbfde71c792b8584225f3d1fc7f2 (patch)
treee51f6c61e856d45ff1d5a7491a6537b89bdd69e2 /drivers/block/mtip32xx
parentmtip32xx: recovery from command timeout (diff)
downloadlinux-6b06d35f3f63dbfde71c792b8584225f3d1fc7f2.tar.xz
linux-6b06d35f3f63dbfde71c792b8584225f3d1fc7f2.zip
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. Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/mtip32xx')
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index 30f233634650..ce4e47dcc153 100644
--- 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: