summaryrefslogtreecommitdiff
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorArtur Molchanov <arturmolchanov@gmail.com>2020-10-12 01:00:45 +0300
committerJ. Bruce Fields <bfields@redhat.com>2020-10-16 22:15:04 +0300
commitc09f56b8f68d4d536bff518227aea323b835b2ce (patch)
treeb05a98a9aa0ce5677adaccaff73eeee9dd7b8960 /fs/nfsd/nfs4state.c
parent9f0b5792f07d8f0745c3620d577d6930ff2a96fd (diff)
downloadlinux-c09f56b8f68d4d536bff518227aea323b835b2ce.tar.xz
net/sunrpc: Fix return value for sysctl sunrpc.transports
Fix returning value for sysctl sunrpc.transports. Return error code from sysctl proc_handler function proc_do_xprt instead of number of the written bytes. Otherwise sysctl returns random garbage for this key. Since v1: - Handle negative returned value from memory_read_from_buffer as an error Signed-off-by: Artur Molchanov <arturmolchanov@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
0 files changed, 0 insertions, 0 deletions