]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't return error values in sysfs read of closed files
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 24 Mar 2022 21:19:59 +0000 (17:19 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 25 Mar 2022 17:24:12 +0000 (13:24 -0400)
commit8b511c048a3361ca97e6db5703a3e0214849ac8a
treea4052ec8d712e18924ffc0134ac36373c74c8e8e
parent09ab5da1278afb88f739debbd89d94ae6b021675
SUNRPC: Don't return error values in sysfs read of closed files

Instead of returning an error value, which ends up being the return
value for the read() system call, it is more elegant to simply return
the error as a string value.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/sysfs.c