diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-11-03 20:18:57 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-11-30 20:46:39 +0100 |
commit | 06bee693a1f1cb774b91000f05a6e183c257d8e9 (patch) | |
tree | d92ce96d5f8b48ea020047fa7ee8e69ac2228c1c /fs | |
parent | NFSD: Replace READ* macros in nfsd4_decode_open() (diff) | |
download | linux-06bee693a1f1cb774b91000f05a6e183c257d8e9.tar.xz linux-06bee693a1f1cb774b91000f05a6e183c257d8e9.zip |
NFSD: Replace READ* macros in nfsd4_decode_open_confirm()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index ece7af152fb1..4ba8fa8038b8 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -1155,18 +1155,18 @@ nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) static __be32 nfsd4_decode_open_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_open_confirm *open_conf) { - DECODE_HEAD; + __be32 status; if (argp->minorversion >= 1) return nfserr_notsupp; - status = nfsd4_decode_stateid(argp, &open_conf->oc_req_stateid); + status = nfsd4_decode_stateid4(argp, &open_conf->oc_req_stateid); if (status) return status; - READ_BUF(4); - open_conf->oc_seqid = be32_to_cpup(p++); + if (xdr_stream_decode_u32(argp->xdr, &open_conf->oc_seqid) < 0) + return nfserr_bad_xdr; - DECODE_TAIL; + return nfs_ok; } static __be32 |