Skip to content
Commit 35a6d396 authored by Fedor Tokarev's avatar Fedor Tokarev Committed by Trond Myklebust
Browse files

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: default avatarFedor Tokarev <ftokarev@gmail.com>
Fixes: 2f34b8bf

 ("SUNRPC: add links for all client xprts to debugfs")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent d3ff46fe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment