]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix null dereference 2743/head
authorYan, Zheng <zyan@redhat.com>
Fri, 17 Oct 2014 14:07:33 +0000 (22:07 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 17 Oct 2014 14:09:22 +0000 (22:09 +0800)
Server::handle_client_file_setlock() should return after calling
reply_request()

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/Server.cc

index e1df31abe299afe14b82c2fdbf9338d5a8bf210d..3f3408e1693a89b8dd7fbf38de3e8635bb511a0a 100644 (file)
@@ -3204,6 +3204,7 @@ void Server::handle_client_file_setlock(MDRequestRef& mdr)
     dout(10) << "got unknown lock type " << set_lock.type
             << ", dropping request!" << dendl;
     reply_request(mdr, -EOPNOTSUPP);
+    return;
   }
 
   dout(10) << " state prior to lock change: " << *lock_state << dendl;