Whamcloud - gitweb
branch: HEAD
authorericm <ericm>
Tue, 14 Apr 2009 20:36:46 +0000 (20:36 +0000)
committerericm <ericm>
Tue, 14 Apr 2009 20:36:46 +0000 (20:36 +0000)
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

index 9f0ea54..661ad8e 100644 (file)
@@ -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) &&