From fdb0a71652a19433b983e8721d849412b017e6b8 Mon Sep 17 00:00:00 2001 From: tianzy Date: Tue, 2 Jun 2009 12:45:08 +0000 Subject: [PATCH] Branch b_release_1_8_1 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 54a8c87..d15aad2 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