summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-metadata.c
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2018-11-08 14:47:27 +0530
committerAmar Tumballi <amarts@redhat.com>2018-11-12 18:34:38 +0000
commitf1a826e1b38d5ecaf9470c61198c4d4362b4c29a (patch)
treea85d6de4faed45c98ece03723f3af63be407a4e8 /xlators/storage/posix/src/posix-metadata.c
parent54a5f0a07817098134219aea9414b029013927f3 (diff)
features/ctime: Fix Coverity issue
CID : 1394632 Dereference after null check Change-Id: If0bef48b070935854e9d2988393dba07c9001cd2 updates: bz#789278 Signed-off-by: Susant Palai <spalai@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-metadata.c')
-rw-r--r--xlators/storage/posix/src/posix-metadata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix-metadata.c b/xlators/storage/posix/src/posix-metadata.c
index 3fce0b2..62fc328 100644
--- a/xlators/storage/posix/src/posix-metadata.c
+++ b/xlators/storage/posix/src/posix-metadata.c
@@ -345,6 +345,7 @@ posix_set_mdata_xattr(xlator_t *this, const char *real_path, int fd,
GF_VALIDATE_OR_GOTO("posix", this, out);
GF_VALIDATE_OR_GOTO(this->name, inode, out);
+ GF_VALIDATE_OR_GOTO(this->name, time, out);
LOCK(&inode->lock);
{