diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 09:49:17 +0100 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2020-03-13 10:03:49 -0400 |
commit | 7f78c68aa796af9e8b98880aa2079daf14e88ebf (patch) | |
tree | 6d249b237717157cb24677dd5e071222a09f768f /drivers/ntb/Kconfig | |
parent | 788b041afd9a66ce3871734e87e908dc47739f39 (diff) |
NTB: ntb_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().
Fixes: fce8a7bb5b4b (PCI-Express Non-Transparent Bridge Support)
Fixes: 282a2feeb9bf (NTB: Use DMA Engine to Transmit and Receive)
Fixes: a754a8fcaf38 (NTB: allocate number transport entries depending on size of ring size)
Fixes: d98ef99e378b (NTB: Clean up QP stats info)
Fixes: e74bfeedad08 (NTB: Add flow control to the ntb_netdev)
Fixes: 569410ca756c (NTB: Use unique DMA channels for TX and RX)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/Kconfig')
0 files changed, 0 insertions, 0 deletions