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

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