summaryrefslogtreecommitdiff
path: root/drivers/hwmon/nsa320-hwmon.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 10:39:44 +0300
committerGuenter Roeck <linux@roeck-us.net>2020-03-11 18:09:31 +0300
commit6a096871b2bedd524ce706aa687de4f7145f535c (patch)
treefcaa27f85d98e8a628c00abc9c247d6de5b20df5 /drivers/hwmon/nsa320-hwmon.c
parent86da28eed4fbc64dfdc386337f6cbac36c9c1ed2 (diff)
downloadlinux-6a096871b2bedd524ce706aa687de4f7145f535c.tar.xz
hwmon: (ibmpowernv) 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> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/nsa320-hwmon.c')
0 files changed, 0 insertions, 0 deletions