diff options
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 74bf0255e98f..9c3b94e8f03b 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -839,7 +839,9 @@ static int loop_set_fd(struct loop_device *lo, struct file *lo_file, | |||
839 | 839 | ||
840 | set_blocksize(bdev, lo_blocksize); | 840 | set_blocksize(bdev, lo_blocksize); |
841 | 841 | ||
842 | kernel_thread(loop_thread, lo, CLONE_KERNEL); | 842 | error = kernel_thread(loop_thread, lo, CLONE_KERNEL); |
843 | if (error < 0) | ||
844 | goto out_putf; | ||
843 | wait_for_completion(&lo->lo_done); | 845 | wait_for_completion(&lo->lo_done); |
844 | return 0; | 846 | return 0; |
845 | 847 | ||