linux/drivers/ntb/test
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
..
Kconfig
Makefile
ntb_perf.c ntb_perf: potential info leak in debugfs 2016-11-13 16:48:30 -05:00
ntb_pingpong.c ntb_pingpong: Fix db_init parameter description 2016-11-13 16:48:29 -05:00
ntb_tool.c ntb_tool: Add link status and files to debugfs 2016-08-05 10:21:07 -04:00