summaryrefslogtreecommitdiff
path: root/drivers/staging/rts_pstor
diff options
context:
space:
mode:
authorwwang <wei_wang@realsil.com.cn>2011-10-31 15:02:53 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-09 08:54:35 -0800
commit60709063c5d50549e834ac75288782e84c8e53db (patch)
treec353116a546dbb34fbb22af69129e0d7b2968e70 /drivers/staging/rts_pstor
parentbdbee02fb09ff4278de3c4656689261ee9647007 (diff)
staging:rts_pstor:Complete scanning_done variable
commit f7364ba04b0961f3a1f978bbe77102606801e35f upstream. Complete scanning_done variable if rtsx-scan thread created failed. Signed-off-by: wwang <wei_wang@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rts_pstor')
-rw-r--r--drivers/staging/rts_pstor/rtsx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rts_pstor/rtsx.c b/drivers/staging/rts_pstor/rtsx.c
index 16c73fbff51f..890e6cce6d3d 100644
--- a/drivers/staging/rts_pstor/rtsx.c
+++ b/drivers/staging/rts_pstor/rtsx.c
@@ -1015,6 +1015,7 @@ static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id
th = kthread_create(rtsx_scan_thread, dev, "rtsx-scan");
if (IS_ERR(th)) {
printk(KERN_ERR "Unable to start the device-scanning thread\n");
+ complete(&dev->scanning_done);
quiesce_and_remove_host(dev);
err = PTR_ERR(th);
goto errout;