ALSA: ice1712: fix boundary check in snd_wm8766_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Feb 2013 08:28:48 +0000 (11:28 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Feb 2013 08:52:15 +0000 (09:52 +0100)
commitb57a895fa2188d4e1cefa030d0fc9d126e453a95
treefb935fc0a4b59713470cab53ea99b4919b989e24
parentf9afed1f7fcadcad2b91f79aa81adf9456864117
ALSA: ice1712: fix boundary check in snd_wm8766_write()

The wm->regs[] array has WM8766_REG_COUNT (16) elements not
WM8766_REG_RESET (31).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/wm8766.c