From 57443a6ee9275a194a0982f505cd971283b0fbf3 Mon Sep 17 00:00:00 2001 From: tianzy Date: Tue, 2 Jun 2009 12:45:57 +0000 Subject: [PATCH] Branch b1_8 fix the problem of mds_open_by_fid() being panic in interoperability case b=19607 i=johann j=alexander.zarochentsev --- lustre/mds/mds_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 27e9ab6..4ce6dd8 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -910,7 +910,7 @@ static int mds_open_by_fid(struct ptlrpc_request *req, struct ll_fid *fid, (lustre_msg_get_transno(req->rq_reqmsg) > req->rq_export->exp_last_committed) && (rec->ur_flags & MDS_OPEN_CREAT) && - pre_versions[0] != 0) { + (pre_versions && pre_versions[0] != 0)) { /* need parent to set version */ dparent = mds_fid2dentry(mds, rec->ur_fid1, NULL); if (IS_ERR(dparent)) { -- 1.8.3.1