From 8152ebf5724ef85d66c12df981799af5ab0306b6 Mon Sep 17 00:00:00 2001 From: huanghua Date: Fri, 4 Aug 2006 16:23:33 +0000 Subject: [PATCH] fixed a defect found by nikita: reply message may have not been packed when updating transno. --- lustre/mdt/mdt_handler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 1.8.3.1