From 4becb0b1fd3b3b9c33caa1621251ec15b57735ec Mon Sep 17 00:00:00 2001 From: ericm Date: Tue, 14 Apr 2009 20:36:46 +0000 Subject: [PATCH] branch: HEAD Fix null pointer reference of rq_export, which maybe null in case of gss. b=18983 r=fanyong r=wangdi --- lustre/mdt/mdt_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 9f0ea54..661ad8e 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -2585,7 +2585,7 @@ static int mdt_req_handle(struct mdt_thread_info *info, } /* If we're DISCONNECTing, the mdt_export_data is already freed */ - if (likely(rc == 0 && h->mh_opc != MDS_DISCONNECT)) + if (likely(rc == 0 && req->rq_export && h->mh_opc != MDS_DISCONNECT)) target_committed_to_req(req); if (unlikely((lustre_msg_get_flags(req->rq_reqmsg) & MSG_REPLAY) && -- 1.8.3.1