From 158e74093563a4a4bb5ac51bd58538cefbb808c0 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 22 May 2013 17:21:59 +0200 Subject: [PATCH] mds/Migrator.cc: fix possible dereference NULL return value CID 716999 (#1 of 1): Dereference null return value (NULL_RETURNS) dereference: Dereferencing a pointer that might be null "in" when calling "CInode::put_stickydirs()". Signed-off-by: Danny Al-Gaaf --- src/mds/Migrator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index fd3d45c5081ca..c93f76601f87c 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -1992,7 +1992,8 @@ void Migrator::import_remove_pins(CDir *dir, set& bounds) continue; did.insert(p->ino); CInode *in = cache->get_inode(p->ino); - in->put_stickydirs(); + assert(in); + in->put_stickydirs(); } if (import_state[dir->dirfrag()] >= IMPORT_PREPPED) { -- 2.39.5