]> 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)
commit1df6654d5dd3619cb50ca382d4948e0cf7685662
treea4052ec8d712e18924ffc0134ac36373c74c8e8e
parent6b12009f35262860cff8649190365f271fea3d0a
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