summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4renewd.c
diff options
context:
space:
mode:
authorTrond Myklebust2008-05-06 19:32:40 +0200
committerTrond Myklebust2008-05-16 18:43:26 +0200
commit3a6258e1fb5ff717dcefa04afc35f81aaae3f3e0 (patch)
tree2bf2cf66277f2400f5dee5f815f5fc1d57c4ffc1 /fs/nfs/nfs4renewd.c
parentnfs: fix race in nfs_dirty_request (diff)
downloadkernel-qcow2-linux-3a6258e1fb5ff717dcefa04afc35f81aaae3f3e0.tar.gz
kernel-qcow2-linux-3a6258e1fb5ff717dcefa04afc35f81aaae3f3e0.tar.xz
kernel-qcow2-linux-3a6258e1fb5ff717dcefa04afc35f81aaae3f3e0.zip
NFSv4: Check the return value of decode_compound_hdr_arg()
If decode_compound_hdr_arg() returns a resource error, then we cannot proceed to process the callback. Return a 'GARBAGE_ARGS' rpc-level error to the caller instead. If, however, the minor version field is incorrect, then we need to propagate the resulting NFS4ERR_MINOR_VERS_MISMATCH error back as the compound status field (setting the nops field to 0). Finally, if encode_compound_hdr_res() returns an error, we need to return an RPC_SYSTEM_ERR to the caller. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4renewd.c')
0 files changed, 0 insertions, 0 deletions