alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Re: ASoC: add Renesas R-Car module feature
@ 2013-11-08 10:02 Dan Carpenter
  2013-11-11  1:00 ` [PATCH] ASoC: rcar: fixup mod access before checking Kuninori Morimoto
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2013-11-08 10:02 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 cdaa3cdfb4a7: "ASoC: add Renesas R-Car module feature" from 
Jul 21, 2013, leads to the following Smatch complaint:

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

sound/soc/sh/rcar/core.c
   290	{
   291		struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
                                         ^^^^^^^^^^^^^^^^^^^^^
Dereference.

   292		struct device *dev = rsnd_priv_to_dev(priv);
   293	
   294		if (!mod) {
                    ^^^^
Check.

   295			dev_err(dev, "NULL mod\n");
   296			return -EIO;

regards,
dan carpenter

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

end of thread, other threads:[~2013-11-12 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 10:02 ASoC: add Renesas R-Car module feature Dan Carpenter
2013-11-11  1:00 ` [PATCH] ASoC: rcar: fixup mod access before checking Kuninori Morimoto
2013-11-12 11:19   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).