mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
NFS: return error from decode_getfh in decode open
commit 01913b49cf upstream.
If decode_getfh failed, nfs4_xdr_dec_open would return 0 since the last
decode_* call must have succeeded.
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d351ebe91e
commit
863f36bf5a
@@ -5745,7 +5745,8 @@ static int nfs4_xdr_dec_open(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
|
||||
status = decode_open(xdr, res);
|
||||
if (status)
|
||||
goto out;
|
||||
if (decode_getfh(xdr, &res->fh) != 0)
|
||||
status = decode_getfh(xdr, &res->fh);
|
||||
if (status)
|
||||
goto out;
|
||||
if (decode_getfattr(xdr, res->f_attr, res->server,
|
||||
!RPC_IS_ASYNC(rqstp->rq_task)) != 0)
|
||||
|
||||
Reference in New Issue
Block a user