-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NTB: ntb_transport: Use scnprintf() for avoiding potential buffer ove…
…rflow 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: fce8a7b (PCI-Express Non-Transparent Bridge Support) Fixes: 282a2fe (NTB: Use DMA Engine to Transmit and Receive) Fixes: a754a8f (NTB: allocate number transport entries depending on size of ring size) Fixes: d98ef99 (NTB: Clean up QP stats info) Fixes: e74bfee (NTB: Add flow control to the ntb_netdev) Fixes: 569410c (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>
- Loading branch information
Takashi Iwai
authored and
Jon Mason
committed
Mar 13, 2020
1 parent
788b041
commit 7f78c68
Showing
1 changed file
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters