ASoC: 88pm860x: array overflow in snd_soc_put_volsw_2r_st()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Sep 2013 07:52:49 +0000 (10:52 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 13 Sep 2013 17:36:39 +0000 (18:36 +0100)
commitd967967e8d1116fb38bad25e58714b5dddd03cca
tree98add03945c8971fa345073a3bcd6f2ae6da497c
parent5df498a27ab385294fdb7cad19c623d4da94a780
ASoC: 88pm860x: array overflow in snd_soc_put_volsw_2r_st()

This is called from snd_ctl_elem_write() with user supplied data so we
need to add some bounds checking.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/88pm860x-codec.c