diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-02-18 12:17:36 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-02-19 13:36:15 +0000 |
commit | 549cd0ba04dcfe340c349cd983bd440480fae8ee (patch) | |
tree | 0e66fe0cbc446d87e456917cfa950a523f593acf /sound/soc/intel/boards/kbl_rt5663_max98927.c | |
parent | ASoC: intel: skl: Fix pin debug prints (diff) | |
download | linux-dev-549cd0ba04dcfe340c349cd983bd440480fae8ee.tar.xz linux-dev-549cd0ba04dcfe340c349cd983bd440480fae8ee.zip |
ASoC: intel: skl: Fix possible buffer overflow in debug outputs
The debugfs output of intel skl driver writes strings with multiple
snprintf() calls with the fixed size. This was supposed to avoid the
buffer overflow but actually it still would, because snprintf()
returns the expected size to be output, not the actual output size.
Fix it by replacing snprintf() calls with scnprintf().
Fixes: d14700a01f91 ("ASoC: Intel: Skylake: Debugfs facility to dump module config")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20200218111737.14193-3-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/kbl_rt5663_max98927.c')
0 files changed, 0 insertions, 0 deletions