]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl: use strncpy() to prevent copying of over-long names
authorDaniel Mack <daniel@zonque.org>
Sun, 19 Oct 2014 07:07:36 +0000 (09:07 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 22 Oct 2014 10:38:01 +0000 (11:38 +0100)
commitd5b23109e5862bb88e6ec521c5a107a94072e047
treecb8faa364e6f8406173ee1abc486198af9d1104f
parent794664fc5e82534aa444b079f807e339c4d8d9b5
ASoC: fsl: use strncpy() to prevent copying of over-long names

Use strncpy() instead of strcpy(). That's not a security issue, as the
source buffer is taken from DT nodes, but we should still enforce bound
checks. Spotted by Coverity.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc.c
sound/soc/fsl/fsl_esai.c