[Freedreno] [PATCH] drm/msm/dpu: Fix pointer dereferenced before checking

Dmitry Baryshkov dmitry.baryshkov at linaro.org
Mon May 30 21:49:42 UTC 2022


On Mon, 30 May 2022 at 05:20, Haowen Bai <baihaowen at meizu.com> wrote:
>
> The phys_enc->wb_idx is dereferencing before null checking, so move
> it after checking.
>
> Signed-off-by: Haowen Bai <baihaowen at meizu.com>
> ---
>  drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>

-- 
With best wishes
Dmitry


More information about the Freedreno mailing list