Whamcloud - gitweb
fixed a defect found by nikita:
authorhuanghua <huanghua>
Fri, 4 Aug 2006 16:23:33 +0000 (16:23 +0000)
committerhuanghua <huanghua>
Fri, 4 Aug 2006 16:23:33 +0000 (16:23 +0000)
reply message may have not been packed when updating transno.

lustre/mdt/mdt_handler.c

index 188bdb0..7de9e22 100644 (file)
@@ -1080,7 +1080,9 @@ int mdt_update_last_transno(struct mdt_thread_info *info, int rc)
         __u64 last_transno;
         __u64 last_committed;
 
-        LASSERT(mdt != NULL);
+        if (mdt == NULL || req == NULL || req->rq_repmsg == NULL)
+                return -EFAULT;
+
         last_committed = mdt->mdt_last_committed;
 
         if (rc == 0) {