]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix coverity warnings on NULL deref
authorSage Weil <sage@inktank.com>
Fri, 19 Oct 2012 16:09:53 +0000 (09:09 -0700)
committerSage Weil <sage@inktank.com>
Fri, 19 Oct 2012 16:09:53 +0000 (09:09 -0700)
commit667fb7258ce85f7a599533f1c5cb93e4dfe949ed
treee74482993bcdb2daebe6ca197c43c3870b3b6d41
parent1e987eaff82a56ef5ff1907db2232297d251d7be
mds: fix coverity warnings on NULL deref

Add asserts...

At (5): Function "MDCache::get_dirfrag(dirfrag_t)" returns null (checked 33 out of 39 times). [show details]
At (6): Assigning: "dir" = null return value from "MDCache::get_dirfrag(dirfrag_t)".
CID 717007 (#1 of 1): Dereference null return value (NULL_RETURNS)
At (7): Dereferencing a pointer that might be null "dir" when calling "MDCache::adjust_bounded_subtree_auth(CDir *, std::vector<dirfrag_t, std::allocator<dirfrag_t> > &, std::pair<int, int>)". [show details]

CID 717006 (#1 of 1): Dereference null return value (NULL_RETURNS)
At (5): Dereferencing a pointer that might be null "dir" when calling "MDCache::adjust_bounded_subtree_auth(CDir *, std::vector<dirfrag_t, std::allocator<dirfrag_t> > &, std::pair<int, int>)". [show details]

CID 717005 (#2 of 2): Dereference null return value (NULL_RETURNS)
At (22): Dereferencing a pointer that might be null "dir" when calling "MDCache::adjust_bounded_subtree_auth(CDir *, std::vector<dirfrag_t, std::allocator<dirfrag_t> > &, int)". [show details]

Signed-off-by: Sage Weil <sage@inktank.com>
src/mds/journal.cc