From c0a4ce316dcdfee918073479eb197a2f9f5684e5 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sun, 26 Aug 2018 16:46:55 -0700 Subject: features/namespace: Fix a probable null dereference Addresses CID: 1388656 Change-Id: I614c29e993dd112ee02c5bffe8c737deb225c1f9 Updates: bz#789278 Signed-off-by: Vijay Bellur --- xlators/features/namespace/src/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/namespace') 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; -- cgit