From 619b4e4147a142ef691e53038b0674a8e544325a Mon Sep 17 00:00:00 2001 From: ericm Date: Thu, 11 Aug 2005 18:06:50 +0000 Subject: [PATCH] fix regression introduced by capabilities. b=7300 --- lustre/mds/handler.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 956de88..b6f1dc9 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1139,11 +1139,12 @@ int mds_pack_remote_perm(struct ptlrpc_request *req, int *reply_off, LASSERT(inode->i_op->permission); LASSERT(req->rq_export->exp_mds_data.med_remote); - pack_off++; /* XXX: ignore the place for acl count */ perm = (struct mds_remote_perm *) lustre_msg_buf(req->rq_repmsg, pack_off++, sizeof(perm)); - if (!perm) + if (!perm) { + CERROR("no remote perm buf at offset %d\n", pack_off - 1); return -EINVAL; + } memset(perm, 0, sizeof(*perm)); @@ -1776,6 +1777,7 @@ out_pop: mds_exit_ucred(&uc); return rc; } + static int mds_access_check(struct ptlrpc_request *req, int offset) { struct obd_device *obd = req->rq_export->exp_obd; -- 1.8.3.1