summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.c
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-10-09 19:40:31 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-10 08:00:26 +0000
commit6472b43cfdb7454f1c1f1faf57ff13643d62fad7 (patch)
treec667c22e55098188c1b7f5d86e2e31f963e20c37 /xlators/features/locks/src/common.c
parent0f2113cb0c3f9dff028fb45a62ec2d1d82b4cb66 (diff)
locks : fix coverity issue
This patch fixes CID 1356544 and 1356539. Both are of type NULL_RETURNS. Change-Id: I2ef7c3ff9929c4d85b79fff00e835ebee3ff3ce0 updates: bz#789278 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
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);
{