summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/locks/src/common.c')
-rw-r--r--xlators/features/locks/src/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c
index a953e0d1a4a..5ad5415ed79 100644
--- a/xlators/features/locks/src/common.c
+++ b/xlators/features/locks/src/common.c
@@ -363,6 +363,8 @@ pl_update_refkeeper(xlator_t *this, inode_t *inode)
int need_ref = 0;
pl_inode = pl_inode_get(this, inode);
+ if (!pl_inode)
+ return;
pthread_mutex_lock(&pl_inode->mutex);
{