summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-11-06 10:12:10 -0800
committerKrutika Dhananjay <kdhananj@redhat.com>2018-11-08 06:44:52 +0000
commit8f82c1165871e43de945ba0ed3fdaaf0d68aeef3 (patch)
tree2f7a2e59dab8f08f1494b3126ab6483c3674ea4d /xlators/features
parentc3fcff9ccbfcec1be242fd5cf210c9995586b078 (diff)
features/locks:Use pthread_mutex_unlock() instead of pthread_mutex_lock()
Fixes CID 1396581 Change-Id: Ic04091b5783a75d8e1e605a9c1c28b77fea048d3 updates: bz#789278 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/locks/src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index 4019126393d..a922b048fd4 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -2949,7 +2949,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;