]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/Migrator.cc: fix dereference after null check
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 29 May 2013 13:46:53 +0000 (15:46 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 31 May 2013 17:15:23 +0000 (19:15 +0200)
commit0b78e2bcff368f5503aa9cd3662c1517655dea37
tree1ff9a4b3657648a14709829ae99bf3c6e93a8ed2
parent578e292b74331ac8f4c2fcfd464edb7d83a6a02f
mds/Migrator.cc: fix dereference after null check

Add asserts to check for 'dir' to fix:

CID 716924 (#1-5 of 5): Dereference after null check (FORWARD_NULL)
  var_deref_model: Passing null pointer "dir" to function "operator
  <<(std::ostream &, CDir &)", which dereferences it.

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