summaryrefslogtreecommitdiff
path: root/include/linux/pci_ids.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 10:11:00 +0300
committerJens Axboe <axboe@kernel.dk>2020-03-12 16:38:47 +0300
commita900cc5cd846edc6964736834e098e88d7ecfcd6 (patch)
treef99463cc1a76303de4583420096b05ad1841a927 /include/linux/pci_ids.h
parent2c523b344dfa65a3738e7039832044aa133c75fb (diff)
downloadlinux-a900cc5cd846edc6964736834e098e88d7ecfcd6.tar.xz
libata: transport: 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: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/pci_ids.h')
0 files changed, 0 insertions, 0 deletions