]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pcm: Fix (again) possible buffer overflow in dpcm state sysfs output
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Mar 2020 16:36:25 +0000 (17:36 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 10 Mar 2020 18:19:01 +0000 (18:19 +0000)
commitd6e3e56c0cb038fe6dbb7027e371c5ced91a7a38
tree25a69ad7ce1fe56857c05ee2bbb87f08e33f3b8a
parentd43df67a609ff85b60d6d3107f3e5b7aea356263
ASoC: pcm: Fix (again) possible buffer overflow in dpcm state sysfs output

This is re-applying the fix that went into 5.6 (commit 98fec7c9e5c6)
as the changes were wiped out after merging the other code
refactoring.  Basically the same changes, just replacing the
suspicious calls of snprintf() with scnprintf().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200310163625.10838-1-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c