From 39a53e5c72c0c02165cbb282bf940f48ae317d6a Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 28 May 2013 12:55:19 +0200 Subject: [PATCH] mds/Server.cc: fix explicit null dereferenced CID 716928 (#1 of 1): Explicit null dereferenced (FORWARD_NULL) var_deref_model: Passing null pointer "session" to function "Session::trim_completed_requests(tid_t)", which dereferences it. Signed-off-by: Danny Al-Gaaf --- src/mds/Server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 98dafc3e285be..644b3ade00523 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -1115,6 +1115,7 @@ void Server::handle_client_request(MClientRequest *req) // trim completed_request list if (req->get_oldest_client_tid() > 0) { dout(15) << " oldest_client_tid=" << req->get_oldest_client_tid() << dendl; + assert(session); session->trim_completed_requests(req->get_oldest_client_tid()); } -- 2.39.5