aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/data_writer
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-27 23:59:00 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-28 00:06:07 +0200
commit24bdc787f9ffa5ab2ac82ef776f7bc3ea925f591 (patch)
treeeb546feaa4172046351455d57cddbfd936554b8c /lib/sqfs/data_writer
parente7a38a62d3005c4b859bcfb9af151304d5008cd2 (diff)
Fix missing mutex unlick in data writer error path
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/data_writer')
-rw-r--r--lib/sqfs/data_writer/pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqfs/data_writer/pthread.c b/lib/sqfs/data_writer/pthread.c
index 9c9b0a2..3cdf8fb 100644
--- a/lib/sqfs/data_writer/pthread.c
+++ b/lib/sqfs/data_writer/pthread.c
@@ -257,6 +257,7 @@ int test_and_set_status(sqfs_data_writer_t *proc, int status)
status = proc->status;
}
pthread_cond_broadcast(&proc->queue_cond);
+ pthread_mutex_unlock(&proc->mtx);
return status;
}