From: Dan Carpenter <dan.carpenter@oracle.com>
To: jarkko.nikula@bitmer.com
Cc: linux-omap@vger.kernel.org
Subject: re: ARM: OMAP: mcbsp: Make wakeup control generic
Date: Wed, 6 Nov 2013 19:18:10 +0300 [thread overview]
Message-ID: <20131106161810.GM15603@elgon.mountain> (raw)
Hello Jarkko Nikula,
This is a semi-automatic email about new static checker warnings.
The patch 1a6458847dd2: "ARM: OMAP: mcbsp: Make wakeup control
generic" from Sep 26, 2011, leads to the following Smatch complaint:
sound/soc/omap/mcbsp.c:590 omap_mcbsp_free()
error: we previously assumed 'mcbsp->pdata' could be null (see line 586)
sound/soc/omap/mcbsp.c
585
586 if (mcbsp->pdata && mcbsp->pdata->ops && mcbsp->pdata->ops->free)
^^^^^^^^^^^^
Existing check.
587 mcbsp->pdata->ops->free(mcbsp->id - 1);
588
589 /* Disable wakeup behavior */
590 if (mcbsp->pdata->has_wakeup)
^^^^^^^^^^^^^^^^^^^^^^^^
Patch introduces an unchecked dereference.
591 MCBSP_WRITE(mcbsp, WAKEUPEN, 0);
592
regards,
dan carpenter
reply other threads:[~2013-11-06 16:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131106161810.GM15603@elgon.mountain \
--to=dan.carpenter@oracle.com \
--cc=jarkko.nikula@bitmer.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox