diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 09:50:37 +0100 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2020-03-25 20:51:55 +0100 |
commit | 8d8a50e20dc2dc41cb788085968b9024dc36f7a5 (patch) | |
tree | caa01ad16a92349a4344da6e114f49cb484a970f /drivers/net/sb1000.c | |
parent | nvme-multipath: do not reset on unknown status (diff) | |
download | linux-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