ASoC: rcar: off by one in rsnd_scu_set_route()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 09:46:10 +0000 (12:46 +0300)
committerMark Brown <broonie@linaro.org>
Tue, 19 Nov 2013 19:07:07 +0000 (19:07 +0000)
commitb5f3d7af286a28e2fcc92debaba40844cb32bfb4
tree3bcdc3ca7051b6afcd0f00cba955f4701150a3f6
parent6020779b118f6221e5d067bd1e6b44bab6fc0276
ASoC: rcar: off by one in rsnd_scu_set_route()

If "id == ARRAY_SIZE(routes)" then we read one space beyond the end of
the routes[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/sh/rcar/scu.c