]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: max98095: a couple array underflows
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Sep 2013 07:52:14 +0000 (10:52 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 13 Sep 2013 17:33:18 +0000 (18:33 +0100)
commitf8d7b13e14357ed19d2ca2799539600418dc3939
treeb6f30ee8113bddf7e287cabb9aa9fb68443d25b4
parent5df498a27ab385294fdb7cad19c623d4da94a780
ASoC: max98095: a couple array underflows

The ->put() function are called from snd_ctl_elem_write() with user
supplied data.  The limit checks here could underflow leading to a
crash.

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/max98095.c