diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2025-02-10 20:03:32 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-03-10 16:11:04 +0300 |
commit | 8ce35dcaf3aed7113cd692759dc0a26cec8cd0c3 (patch) | |
tree | 97f55a21b6b54f6e45303b49abe094de2d78f14a /rust/helpers/helpers.c | |
parent | 4b54b85e38919f7a0d27ae340600ffdcf97c12d5 (diff) | |
download | linux-8ce35dcaf3aed7113cd692759dc0a26cec8cd0c3.tar.xz |
NFSD: Fix callback decoder status codes
fs/nfsd/nfs4callback.c implements a callback client. Thus its XDR
decoders are decoding replies, not calls.
NFS4ERR_BAD_XDR is an on-the-wire status code that reports that the
client sent a corrupted RPC /call/. It's not used as the internal
error code when a /reply/ can't be decoded, since that kind of
failure is never reported to the sender of that RPC message.
Instead, a reply decoder should return -EIO, as the reply decoders
in the NFS client do.
Fixes: 6487a13b5c6b ("NFSD: add support for CB_GETATTR callback")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions