]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
MDCache::handle_discover: fix null pointer deref
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 1 Mar 2014 11:10:56 +0000 (12:10 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 1 Mar 2014 11:10:56 +0000 (12:10 +0100)
commit93c09836fe7aeebc8cee0dff47ccd94f3a2c42e8
treeb920540f76ba8b6cf068113b099a1230001557fe
parent249e21079257fafe06d80c541f52751e8bf942b2
MDCache::handle_discover: fix null pointer deref

CID 716990 (#1 of 1): Dereference null return value (NULL_RETURNS)
 dereference: Dereferencing a pointer that might be null "cur" when calling
 "MDCache::replicate_inode(CInode *, int, ceph::bufferlist &)"

Add assert to check for return value from get_inode() as done in other places.

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