All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] ASoC: amd: acp: ACP code generic to support newer platforms
@ 2022-07-13 11:37 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2022-07-13 11:37 UTC (permalink / raw)
  To: Vsujithkumar.Reddy; +Cc: alsa-devel

Hello V sujith kumar Reddy,

This is a semi-automatic email about new static checker warnings.

The patch b24484c18b10: "ASoC: amd: acp: ACP code generic to support 
newer platforms" from Jul 7, 2022, leads to the following Smatch 
complaint:

    sound/soc/amd/acp/acp-platform.c:99 i2s_irq_handler()
    warn: variable dereferenced before check 'adata' (see line 94)

sound/soc/amd/acp/acp-platform.c
    93		struct acp_dev_data *adata = data;
    94		struct acp_resource *rsrc = adata->rsrc;
                                            ^^^^^^^^^^^
The patch adds a new dereference

    95		struct acp_stream *stream;
    96		u16 i2s_flag = 0;
    97		u32 val, val1, i;
    98	
    99		if (!adata)
                    ^^^^^^
The old code assumed that "adata" could be NULL but hopefully that
check can be removed?

   100			return IRQ_NONE;
   101	

regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-13 11:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-13 11:37 [bug report] ASoC: amd: acp: ACP code generic to support newer platforms Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.