]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Migrator.cc: fix possible dereference NULL return value 310/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 May 2013 15:28:06 +0000 (17:28 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 May 2013 15:28:06 +0000 (17:28 +0200)
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 <danny.al-gaaf@bisect.de>
src/mds/Migrator.cc

index 61d9f8e8c65d689822e640d01a599b5a1e9b85c7..e7f4e27fecb068e62638123c0b183069d1da0f7b 100644 (file)
@@ -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)!