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) {