summaryrefslogtreecommitdiff
path: root/btrfs-image.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-image.c')
-rw-r--r--btrfs-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-image.c b/btrfs-image.c
index c1af019d..03cf85e7 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -1632,7 +1632,7 @@ static void *restore_worker(void *data)
if (!mdres->error)
mdres->error = -ENOMEM;
pthread_mutex_unlock(&mdres->mutex);
- goto out;
+ pthread_exit(NULL);
}
while (1) {