aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2016-10-14 10:34:18 +0300
committerJon Mason <[email protected]>2016-11-13 16:48:30 -0500
commit819baf885953b588b63bef28e5598daf9ed4ddf9 (patch)
treec4c576acfae821524f886b7f12841f9168ffa6ff /net/switchdev/switchdev.c
parent25ea9f2bf5f76082da919f2a91ea8d920932c1da (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 <[email protected]> Acked-by: Dave Jiang <[email protected]> Signed-off-by: Jon Mason <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions