summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-08-26 16:46:55 -0700
committerAmar Tumballi <amarts@redhat.com>2018-08-27 12:57:31 +0000
commitc0a4ce316dcdfee918073479eb197a2f9f5684e5 (patch)
tree798544ab00bd8ce814a10326e2a7ecdd64cdad9a /xlators
parentddaa43e6a27ee650bbf8fd6ee731276c98042a67 (diff)
features/namespace: Fix a probable null dereference
Addresses CID: 1388656 Change-Id: I614c29e993dd112ee02c5bffe8c737deb225c1f9 Updates: bz#789278 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/namespace/src/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/namespace/src/namespace.c b/xlators/features/namespace/src/namespace.c
index cabd247da0c..b1c61c912fc 100644
--- a/xlators/features/namespace/src/namespace.c
+++ b/xlators/features/namespace/src/namespace.c
@@ -129,7 +129,7 @@ ns_inode_ctx_put (inode_t *inode, xlator_t *this, ns_info_t *info)
int ret = -1;
if (!inode || !this) {
- gf_log (this->name, GF_LOG_WARNING,
+ gf_log (this ? this->name : "namespace", GF_LOG_WARNING,
"Need a valid inode and xlator to cache ns_info.");
ret = -1;
goto out;