diff options
author | Fedor Tokarev <ftokarev@gmail.com> | 2020-10-15 16:59:08 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-12-02 14:05:54 -0500 |
commit | 35a6d396721e28ba161595b0fc9e8896c00399bb (patch) | |
tree | 9e46b6f6cd7934cdf2b9db671b8eeb49d6e02855 /block | |
parent | d3ff46fe693683cb9660e9b93e8c932cc8e0c1f8 (diff) | |
download | linux-35a6d396721e28ba161595b0fc9e8896c00399bb.tar.gz linux-35a6d396721e28ba161595b0fc9e8896c00399bb.tar.bz2 linux-35a6d396721e28ba161595b0fc9e8896c00399bb.zip |
net: sunrpc: Fix 'snprintf' return value check in 'do_xprt_debugfs'
'snprintf' returns the number of characters which would have been written
if enough space had been available, excluding the terminating null byte.
Thus, the return value of 'sizeof(buf)' means that the last character
has been dropped.
Signed-off-by: Fedor Tokarev <ftokarev@gmail.com>
Fixes: 2f34b8bfae19 ("SUNRPC: add links for all client xprts to debugfs")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions