From 7136414bcc0426270f1df8720018af1b53fd228a Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 6 Nov 2018 10:12:10 -0800 Subject: features/locks:Use pthread_mutex_unlock() instead of pthread_mutex_lock() Fixes CID 1396581 Change-Id: Ic04091b5783a75d8e1e605a9c1c28b77fea048d3 updates: bz#1647962 Signed-off-by: Vijay Bellur Signed-off-by: Susant Palai --- xlators/features/locks/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 28c879822ba..6b67f7ece94 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -2940,7 +2940,7 @@ pl_metalk(call_frame_t *frame, xlator_t *this, inode_t *inode) ret = -1; } } - pthread_mutex_lock(&pl_inode->mutex); + pthread_mutex_unlock(&pl_inode->mutex); if (ret == -1) { goto out; -- cgit