Files
Artur Molchanov 5c404864f5 net/sunrpc: Fix return value for sysctl sunrpc.transports
commit c09f56b8f6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-05 11:51:50 +01:00
..
…
…
2020-03-16 12:04:33 -04:00
2020-03-16 12:04:33 -04:00
2020-09-21 10:13:25 -04:00
…