diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 10:13:41 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-03-14 14:07:38 +0300 |
commit | 3c0897c180c6605ebbdfa1b4badc71e181fc4cdc (patch) | |
tree | 80430012918fa2ac2f0c83ff6b86687ea598d2bf /drivers/thermal | |
parent | c1f59a3782ee00a92849cb64e15fa6480620f281 (diff) | |
download | linux-3c0897c180c6605ebbdfa1b4badc71e181fc4cdc.tar.xz |
cpufreq: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the
actual output size, the succeeding calls may go beyond the given
buffer limit. Fix it by replacing with scnprintf().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions