summaryrefslogtreecommitdiff
path: root/drivers/visorbus
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 10:29:30 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-18 12:59:29 +0100
commite39c0ffe8cc3cce212928168236bfd0c22965235 (patch)
tree36e0cecb0e86de0a5d51f04cfe0ca70101cd4d4d /drivers/visorbus
parente2c2e7987106efbb576d7a46fbc9298fafd0b844 (diff)
tty: serial: pch_uart: 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> Link: https://lore.kernel.org/r/20200311092930.24433-1-tiwai@suse.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/visorbus')
0 files changed, 0 insertions, 0 deletions