diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-10-14 10:34:18 +0300 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2016-11-13 16:48:30 -0500 |
commit | 819baf885953b588b63bef28e5598daf9ed4ddf9 (patch) | |
tree | c4c576acfae821524f886b7f12841f9168ffa6ff /Documentation | |
parent | 25ea9f2bf5f76082da919f2a91ea8d920932c1da (diff) |
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions