]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: fix null pointer dereference in Server::handle_client_link()
authorYan, Zheng <zyan@redhat.com>
Sun, 19 Jan 2020 07:44:02 +0000 (15:44 +0800)
committerYan, Zheng <zyan@redhat.com>
Sun, 19 Jan 2020 08:24:32 +0000 (16:24 +0800)
Fixes: https://tracker.ceph.com/issues/43660
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Server.cc

index 35da262d408a17aa4c4f3a938eadb274b51c98e7..ce1e6fb5e0c6ea8b0a665ee07ff034a4c76971a9 100644 (file)
@@ -6136,6 +6136,7 @@ void Server::handle_client_link(MDRequestRef& mdr)
     if (!targeti) {
       dout(10) << "ESTALE on path2, attempting recovery" << dendl;
       mdcache->find_ino_peers(req->get_filepath2().get_ino(), new C_MDS_TryFindInode(this, mdr));
+      return;
     }
     mdr->pin(targeti);