]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/CInode.cc: fix FORWARD_NULL issue
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 6 May 2015 15:09:08 +0000 (17:09 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 1 Jun 2015 04:59:26 +0000 (06:59 +0200)
commit05b050f0b60ad313e97c42473d774fd163aab3ec
tree005c38ea1bf266dd367c5066999ea4e50f290f34
parent0ae8fcadfb3c410bfb11a6c1b3e645d9e7ea0dce
mds/CInode.cc:  fix FORWARD_NULL issue

Don't check for the conditions used inside get_projected_parent_dn(),
simply check if the returned value is valid.

Fix for:

CID 716915: Dereference after null check (FORWARD_NULL)
 var_deref_model: Passing null pointer this->get_projected_parent_dn()
 to pre_dirty, which dereferences it.

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