summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pci-host-generic.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 08:13:41 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-03-14 12:07:38 +0100
commit3c0897c180c6605ebbdfa1b4badc71e181fc4cdc (patch)
tree80430012918fa2ac2f0c83ff6b86687ea598d2bf /drivers/pci/controller/pci-host-generic.c
parentc1f59a3782ee00a92849cb64e15fa6480620f281 (diff)
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/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions