summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/sof-pci-dev.c
diff options
context:
space:
mode:
authorHui Wang <hui.wang@canonical.com>2021-02-08 11:38:57 +0100
committerMark Brown <broonie@kernel.org>2021-02-08 12:39:06 +0100
commit9037c3bde65d339017ef41d81cb58069ffc321d4 (patch)
tree07cd2248d879fb147f38a90645f75241362b21f8 /sound/soc/sof/sof-pci-dev.c
parentASoC: rt5682: Fix panic in rt5682_jack_detect_handler happening during system... (diff)
downloadlinux-9037c3bde65d339017ef41d81cb58069ffc321d4.tar.xz
linux-9037c3bde65d339017ef41d81cb58069ffc321d4.zip
ASoC: SOF: debug: Fix a potential issue on string buffer termination
The function simple_write_to_buffer() doesn't add string termination at the end of buf, we need to handle it on our own. This change refers to the function tokenize_input() in debug.c and the function sof_dfsentry_trace_filter_write() in trace.c. Fixes: 091c12e1f50c ("ASoC: SOF: debug: add new debugfs entries for IPC flood test") Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Signed-off-by: Hui Wang <hui.wang@canonical.com> Link: https://lore.kernel.org/r/20210208103857.75705-1-hui.wang@canonical.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-pci-dev.c')
0 files changed, 0 insertions, 0 deletions