]> 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)
commita4cbaeca901482c90914832942ec9682d362b150
tree25a69ad7ce1fe56857c05ee2bbb87f08e33f3b8a
parent48721ecb7295da08b4bc8fb1d014b3fe68848574
ASoC: pcm: Fix (again) possible buffer overflow in dpcm state sysfs output

This is re-applying the fix that went into 5.6 (commit 914ec8602696)
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