ASoC: rt286: Fix run time error while modifying const data
authorAxel Lin <axel.lin@ingics.com>
Mon, 5 Oct 2015 13:22:40 +0000 (21:22 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 7 Oct 2015 09:46:49 +0000 (10:46 +0100)
commitdc6d84c69cf8296b1e8e2fd0b1e115b7787ef4e9
tree9f20b4bca656f8104d02ddbb6c67fa4414558751
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: rt286: Fix run time error while modifying const data

Make a copy of memory for index_cache rather than directly use the
rt286_index_def to avoid run time error.

Fixes: c418a84a8c8f ("ASoC: Constify reg_default tables")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt286.c