kernel_optimize_test/drivers/ntb
Dan Carpenter 819baf8859 ntb_perf: potential info leak in debugfs
This is a static checker warning, not something I'm desperately
concerned about.  But snprintf() returns the number of bytes that
would have been copied if there were space.  We really care about the
number of bytes that actually were copied so we should use scnprintf()
instead.

It probably won't overrun, and in that case we may as well just use
sprintf() but these sorts of things make static checkers and code
reviewers happier.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2016-11-13 16:48:30 -05:00
..
hw ntb: ntb_hw_intel: init peer_addr in struct intel_ntb_dev 2016-11-13 16:48:29 -05:00
test ntb_perf: potential info leak in debugfs 2016-11-13 16:48:30 -05:00
Kconfig NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
Makefile NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
ntb_transport.c ntb_transport: make DMA_OUT_RESOURCE_TO HZ independent 2016-11-13 16:48:29 -05:00
ntb.c ntb: avoid format string in dev_set_name 2015-08-09 16:32:22 -04:00