diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-12-21 23:50:00 +0530 |
---|---|---|
committer | Sunny Kumar <sunkumar@redhat.com> | 2018-12-23 23:04:51 +0530 |
commit | 233c909077fb1971e8813240a6161edc30c1e77b (patch) | |
tree | 17da7c3127dba6265cd8e00de4dd0844810184cd /xlators/meta/src | |
parent | 730ab84586b73e8677537ed90b78fabf5dde3b48 (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/src')
-rw-r--r-- | xlators/meta/src/meta-defaults.c | 2 |
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; } |