mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
staging:rts_pstor:Complete scanning_done variable
Complete scanning_done variable if rtsx-scan thread created failed. Signed-off-by: wwang <wei_wang@realsil.com.cn> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
438957f8d4
commit
f7364ba04b
1 changed files with 1 additions and 0 deletions
|
@ -1021,6 +1021,7 @@ static int __devinit rtsx_probe(struct pci_dev *pci,
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue