All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: ASoC: rsnd: show debug message for SSI/SRC/DVC connection
@ 2015-07-20 21:45 Dan Carpenter
  2015-07-21  0:03 ` [PATCH] ASoC: rsnd: tidyup parameter assignment position Kuninori Morimoto
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2015-07-20 21:45 UTC (permalink / raw)
  To: kuninori.morimoto.gx; +Cc: alsa-devel

Hello Kuninori Morimoto,

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

The patch 84e95355602c: "ASoC: rsnd: show debug message for 
SSI/SRC/DVC connection" from Jul 15, 2015, leads to the following 
Smatch complaint:

sound/soc/sh/rcar/core.c:338 rsnd_dai_connect()
	 warn: variable dereferenced before check 'mod' (see line 335)

sound/soc/sh/rcar/core.c
   334	{
   335		struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
                                         ^^^^^^^^^^^^^^^^^^^^^
Patch adds new dereference.

   336		struct device *dev = rsnd_priv_to_dev(priv);
   337	
   338		if (!mod)
                    ^^^^
Existing code assumed "mod" could be NULL.

   339			return -EIO;
   340	

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-21 10:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20 21:45 ASoC: rsnd: show debug message for SSI/SRC/DVC connection Dan Carpenter
2015-07-21  0:03 ` [PATCH] ASoC: rsnd: tidyup parameter assignment position Kuninori Morimoto
2015-07-21 10:49   ` Applied "ASoC: rsnd: tidyup parameter assignment position" to the asoc tree Mark Brown

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.