summaryrefslogtreecommitdiffstats
path: root/xlators/meta
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-12-21 23:50:00 +0530
committerSunny Kumar <sunkumar@redhat.com>2018-12-23 23:04:51 +0530
commit233c909077fb1971e8813240a6161edc30c1e77b (patch)
tree17da7c3127dba6265cd8e00de4dd0844810184cd /xlators/meta
parent730ab84586b73e8677537ed90b78fabf5dde3b48 (diff)
meta : fix coverity issue
This patch fixes coverity issue possible null dereference. Change-Id: I93c0847c3d93b29a1e001ed044a63e908c670167 updates: bz#789278 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/meta')
-rw-r--r--xlators/meta/src/meta-defaults.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/meta/src/meta-defaults.c b/xlators/meta/src/meta-defaults.c
index ea8f3230b1d..91c328473f8 100644
--- a/xlators/meta/src/meta-defaults.c
+++ b/xlators/meta/src/meta-defaults.c
@@ -244,7 +244,7 @@ meta_default_readlink(call_frame_t *frame, xlator_t *this, loc_t *loc,
int len = -1;
ops = meta_ops_get(loc->inode, this);
- if (!ops->link_fill) {
+ if (!ops || !ops->link_fill) {
META_STACK_UNWIND(readlink, frame, -1, EPERM, 0, 0, 0);
return 0;
}