diff options
Diffstat (limited to 'fs/btrfs/async-thread.c')
-rw-r--r-- | fs/btrfs/async-thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c index 8d4cc4679d51..5fe6a0d532ed 100644 --- a/fs/btrfs/async-thread.c +++ b/fs/btrfs/async-thread.c | |||
@@ -187,6 +187,7 @@ int btrfs_start_workers(struct btrfs_workers *workers, int num_workers) | |||
187 | worker->task = kthread_run(worker_loop, worker, "btrfs"); | 187 | worker->task = kthread_run(worker_loop, worker, "btrfs"); |
188 | worker->workers = workers; | 188 | worker->workers = workers; |
189 | if (IS_ERR(worker->task)) { | 189 | if (IS_ERR(worker->task)) { |
190 | kfree(worker); | ||
190 | ret = PTR_ERR(worker->task); | 191 | ret = PTR_ERR(worker->task); |
191 | goto fail; | 192 | goto fail; |
192 | } | 193 | } |