[alsa-devel] [PATCH v2] ASoC: cht_bsw_rt5645: Fix writing to string literal

Mark Brown broonie at kernel.org
Fri Feb 26 03:12:10 CET 2016


On Tue, Feb 23, 2016 at 09:50:20AM +0100, Carlo Caione wrote:
> From: Carlo Caione <carlo at endlessm.com>
> 
> 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.

So how was the original code tested then...?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20160226/e41a774e/attachment.sig>


More information about the Alsa-devel mailing list