From b601f8997dd5c666d49fc2e2ea15196dfc917a2d Mon Sep 17 00:00:00 2001 From: Jinshan Xiong Date: Fri, 29 Sep 2017 19:25:23 +0000 Subject: [PATCH] LU-10050 lod: suspicious buffer reference in lod replay In the replay path of lod_declare_layout_change(), it mistakenly uses the address of buffer pointer where it should use the buffer pointer. Signed-off-by: Jinshan Xiong Change-Id: I82b77ad4b12bc7880f7376e13853baaa7dbfe341 Reviewed-on: https://review.whamcloud.com/29269 Reviewed-by: Bobi Jam Reviewed-by: Lai Siyao Tested-by: Jenkins Tested-by: Maloo --- lustre/lod/lod_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lod/lod_object.c b/lustre/lod/lod_object.c index e59d82f..5cde03d 100644 --- a/lustre/lod/lod_object.c +++ b/lustre/lod/lod_object.c @@ -5106,7 +5106,7 @@ static int lod_declare_layout_change(const struct lu_env *env, if (rc <= 0) GOTO(out, rc); /* old on-disk EA is stored in info->lti_buf */ - comp_v1 = (struct lov_comp_md_v1 *)&info->lti_buf.lb_buf; + comp_v1 = (struct lov_comp_md_v1 *)info->lti_buf.lb_buf; replay = true; } else { /* non replay path */ -- 1.8.3.1