Re: [PATCH] drm/msm/a6xx: fix a potential overflow issue

2020-09-16 Thread Zhenzhong Duan
On Tue, Sep 15, 2020 at 12:20 AM Jordan Crouse wrote: > > On Sat, Sep 12, 2020 at 06:25:58PM +0800, Zhenzhong Duan wrote: > > It's allocating an array of a6xx_gpu_state_obj structure rathor than > > its pointers. > > > > This patch fix it. > > > > Signed-off-by: Zhenzhong Duan > > LGTM but should

Re: [PATCH] drm/msm/a6xx: fix a potential overflow issue

2020-09-15 Thread Bjorn Andersson
On Sat 12 Sep 10:25 UTC 2020, Zhenzhong Duan wrote: > It's allocating an array of a6xx_gpu_state_obj structure rathor than > its pointers. > > This patch fix it. > Reviewed-by: Bjorn Andersson > Signed-off-by: Zhenzhong Duan > --- > drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 2 +- > 1 fi

Re: [PATCH] drm/msm/a6xx: fix a potential overflow issue

2020-09-14 Thread Jordan Crouse
On Sat, Sep 12, 2020 at 06:25:58PM +0800, Zhenzhong Duan wrote: > It's allocating an array of a6xx_gpu_state_obj structure rathor than > its pointers. > > This patch fix it. > > Signed-off-by: Zhenzhong Duan LGTM but should have a Fixes: tag for the stable trees Fixes: d6852b4b2d01 ("drm/msm/a

[PATCH] drm/msm/a6xx: fix a potential overflow issue

2020-09-14 Thread Zhenzhong Duan
It's allocating an array of a6xx_gpu_state_obj structure rathor than its pointers. This patch fix it. Signed-off-by: Zhenzhong Duan --- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c b/