From: Jinshan Xiong Date: Fri, 29 Sep 2017 19:25:23 +0000 (+0000) Subject: LU-10050 lod: suspicious buffer reference in lod replay X-Git-Tag: 2.10.56~9^2^2~21 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F29269%2F7;p=fs%2Flustre-release.git 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 --- 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 */