Skip to content
Commit 7f78c68a authored by Takashi Iwai's avatar Takashi Iwai Committed by Jon Mason
Browse files

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: fce8a7bb (PCI-Express Non-Transparent Bridge Support)
Fixes: 282a2fee (NTB: Use DMA Engine to Transmit and Receive)
Fixes: a754a8fc (NTB: allocate number transport entries depending on size of ring size)
Fixes: d98ef99e (NTB: Clean up QP stats info)
Fixes: e74bfeed (NTB: Add flow control to the ntb_netdev)
Fixes: 569410ca (NTB: Use unique DMA channels for TX and RX)
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 788b041a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment