]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/Migrator.cc: fix possible NULL pointer dereference
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 May 2013 15:06:40 +0000 (17:06 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 May 2013 15:06:40 +0000 (17:06 +0200)
commitde1e3553605a91295d25d23e05371f5ff11c5f7e
tree73d3c2748d7b1851acedfa00b35cd2fd2dfb86a0
parent5110497e31cd229c7e28363b046b9da6a60f5fd9
mds/Migrator.cc: fix possible NULL pointer dereference

Move dout() calls behind the related asserts to prevent possible NULL
pointer dereference.

CID 717001 (#1 of 1): Dereference null return value (NULL_RETURNS)
  dereference: Dereferencing a pointer that might be null "diri" when calling
  "operator <<(std::ostream &, CInode

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/Migrator.cc