Re: [PATCH RESEND] drm/msm/dpu: Fix smatch warnings about variable dereferenced before check

From: Dan Carpenter

Date: Thu Jan 29 2026 - 02:12:58 EST


On Thu, Jan 29, 2026 at 10:49:19AM +0800, sunliming@xxxxxxxxx wrote:
> From: sunliming <sunliming@xxxxxxxxxx>
>
> Fix below smatch warnings:
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp_v13.c:161 dpu_hw_sspp_setup_pe_config_v13()
> warn: variable dereferenced before check 'ctx' (see line 159)
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <error27@xxxxxxxxx>
> Closes: https://lore.kernel.org/r/202601252214.oEaY3UZM-lkp@xxxxxxxxx/
> Signed-off-by: sunliming <sunliming@xxxxxxxxxx>
> ---

Could you capitalize your name? It's supposed to be a bit formal like
signing a legal document.

This isn't a RESEND, it's a v2. A RESEND means we accidentally ignored
your email so now you have to send the exact same email again.

https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/

regards,
dan carpenter