]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cht_bsw_rt5645: Fix writing to string literal
authorCarlo Caione <carlo@endlessm.com>
Tue, 23 Feb 2016 08:50:20 +0000 (09:50 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Feb 2016 02:11:47 +0000 (11:11 +0900)
commit47c7300884e56e83660f4d8b0156a19bb2339bd8
treea7de5e31b7d139cc7b924dd4d751ddb7a579e168
parent40b76a1e44aefe6528f9fbbaa1051a5cf33425c4
ASoC: cht_bsw_rt5645: Fix writing to string literal

We cannot use strcpy() to write to a const char * location. This is
causing a 'BUG: unable to handle kernel paging request' error at boot
when using the cht-bsw-rt5645 driver.

With this patch we also fix a wrong indexing in the driver where the
codec_name of the wrong dai_link is being overwritten.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5645.c