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

From: Dan Carpenter

Date: Fri Jan 30 2026 - 03:24:29 EST


On Fri, Jan 30, 2026 at 01:30:35PM +0800, sunliming wrote:
>
> On 2026/1/29 15:07, Dan Carpenter wrote:
> > 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>
> > > ---
>
> Previously, a maintainer suggested that the name should match the email
> address,
>

Yes. But normally people change their email address instead of their
name.

> but community patches have consistently used the name "sunliming" since
> then.
>

Consistency is less important than being correct... It's just a weird
thing to say. Are there other non-community patches with a different
name? It's fine if that's your legal name and we have made exceptions
for people who aren't able to share their real name because of stalking
or whatever...

regards,
dan carpenter