From 549e547b3bf89aecd35e4b770a410762800d0ac5 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 22 May 2013 17:28:06 +0200 Subject: [PATCH] mds/Migrator.cc: fix possible dereference NULL return value CID 716997 (#1 of 1): Dereference null return value (NULL_RETURNS) dereference: Dereferencing a pointer that might be null "in" when calling "MDSCacheObject::is_auth() const". Signed-off-by: Danny Al-Gaaf --- src/mds/Migrator.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 61d9f8e8c65d..e7f4e27fecb0 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -2635,6 +2635,7 @@ void Migrator::handle_export_caps(MExportCaps *ex) dout(10) << "handle_export_caps " << *ex << " from " << ex->get_source() << dendl; CInode *in = cache->get_inode(ex->ino); + assert(in); assert(in->is_auth()); /* * note: i may be frozen, but i won't have been encoded for export (yet)! -- 2.47.3