From: huanghua Date: Fri, 4 Aug 2006 16:23:33 +0000 (+0000) Subject: fixed a defect found by nikita: X-Git-Tag: v1_8_0_110~486^2~1271 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=8152ebf5724ef85d66c12df981799af5ab0306b6;p=fs%2Flustre-release.git fixed a defect found by nikita: reply message may have not been packed when updating transno. --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 188bdb0..7de9e22 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -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) {