From: tianzy Date: Tue, 2 Jun 2009 12:44:35 +0000 (+0000) Subject: Branch b_release_1_8_0 X-Git-Tag: v1_8_0_1~15 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7f760cc83573634d590a607b9e976867922468b4;p=fs%2Flustre-release.git Branch b_release_1_8_0 fix the problem of mds_open_by_fid() being panic in interoperability case b=19607 i=johann j=alexander.zarochentsev --- diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 1dc20da..31f7178 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -917,7 +917,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)) {