]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: 88pm860x-codec: Fix possibly missing string termination
authorDaniel Mack <daniel@zonque.org>
Tue, 7 Oct 2014 11:41:25 +0000 (13:41 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Oct 2014 12:13:22 +0000 (13:13 +0100)
commit8127159ded4e9d232dd630013b5a219c0503db3c
tree6a784c3d1d6285e4ea9f98d521bede20562b138d
parent983167cb44db3089141f6087e778fed0519b7bef
ASoC: 88pm860x-codec: Fix possibly missing string termination

Coverity spotted an issue with strncpy() in pm860x_codec_probe()
which does not take the \0 termination byte into account. Fix this
by making the buffers one byte larger so the can really accommodate
MAX_NAME_LEN bytes long strings.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/88pm860x-codec.c