From: Yuanhan Liu <yuanhan.liu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [sound:for-next 10/15] sound/pci/ice1712/wm8766.c:35 snd_wm8766_write() error: buffer overflow 'wm->
Date: Thu, 18 Oct 2012 08:23:11 +0000 [thread overview]
Message-ID: <20121018082311.GL21995@yliu-dev.sh.intel.com> (raw)
Hi Ondrej,
FYI, there are new smatch warnings show up in
tree: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: de3ab850a0e883329594f62ec18fecef4fcfe5ca
commit: 45d44e5a945296693b392ea807768329c1a80af6 [10/15] ALSA: ice1712: Add Wolfson Microelectronics WM8766 codec support
+ sound/pci/ice1712/wm8766.c:35 snd_wm8766_write() error: buffer overflow 'wm->regs' 16 <= 30
vim +35 sound/pci/ice1712/wm8766.c
45d44e5a Ondrej Zary 2012-10-14 19 * along with this program; if not, write to the Free Software
45d44e5a Ondrej Zary 2012-10-14 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45d44e5a Ondrej Zary 2012-10-14 21 *
45d44e5a Ondrej Zary 2012-10-14 22 */
45d44e5a Ondrej Zary 2012-10-14 23
45d44e5a Ondrej Zary 2012-10-14 24 #include <linux/delay.h>
45d44e5a Ondrej Zary 2012-10-14 25 #include <sound/core.h>
45d44e5a Ondrej Zary 2012-10-14 26 #include <sound/control.h>
45d44e5a Ondrej Zary 2012-10-14 27 #include <sound/tlv.h>
45d44e5a Ondrej Zary 2012-10-14 28 #include "wm8766.h"
45d44e5a Ondrej Zary 2012-10-14 29
45d44e5a Ondrej Zary 2012-10-14 30 /* low-level access */
45d44e5a Ondrej Zary 2012-10-14 31
45d44e5a Ondrej Zary 2012-10-14 32 static void snd_wm8766_write(struct snd_wm8766 *wm, u16 addr, u16 data)
45d44e5a Ondrej Zary 2012-10-14 33 {
45d44e5a Ondrej Zary 2012-10-14 34 if (addr < WM8766_REG_RESET)
45d44e5a Ondrej Zary 2012-10-14 @35 wm->regs[addr] = data;
45d44e5a Ondrej Zary 2012-10-14 36 wm->ops.write(wm, addr, data);
45d44e5a Ondrej Zary 2012-10-14 37 }
45d44e5a Ondrej Zary 2012-10-14 38
45d44e5a Ondrej Zary 2012-10-14 39 /* mixer controls */
45d44e5a Ondrej Zary 2012-10-14 40
45d44e5a Ondrej Zary 2012-10-14 41 static const DECLARE_TLV_DB_SCALE(wm8766_tlv, -12750, 50, 1);
45d44e5a Ondrej Zary 2012-10-14 42
45d44e5a Ondrej Zary 2012-10-14 43 static struct snd_wm8766_ctl snd_wm8766_default_ctl[WM8766_CTL_COUNT] = {
---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation
reply other threads:[~2012-10-18 8:23 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=20121018082311.GL21995@yliu-dev.sh.intel.com \
--to=yuanhan.liu@intel.com \
--cc=kernel-janitors@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 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.