summaryrefslogtreecommitdiffstats
path: root/drivers/net/sb1000.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 09:50:37 +0100
committerKeith Busch <kbusch@kernel.org>2020-03-25 20:51:55 +0100
commit8d8a50e20dc2dc41cb788085968b9024dc36f7a5 (patch)
treecaa01ad16a92349a4344da6e114f49cb484a970f /drivers/net/sb1000.c
parentnvme-multipath: do not reset on unknown status (diff)
downloadlinux-8d8a50e20dc2dc41cb788085968b9024dc36f7a5.tar.xz
linux-8d8a50e20dc2dc41cb788085968b9024dc36f7a5.zip
nvme-fabrics: 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(). Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/net/sb1000.c')
0 files changed, 0 insertions, 0 deletions