Skip to content

Commit

Permalink
NFSv4: Don't fail nfs4_xdr_dec_open if decode_restorefh() failed
Browse files Browse the repository at this point in the history
We can already easily recover from that inside _nfs4_proc_open().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jul 19, 2007
1 parent 6f220ed commit 365c8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4035,7 +4035,7 @@ static int nfs4_xdr_dec_open(struct rpc_rqst *rqstp, __be32 *p, struct nfs_openr
goto out;
if (decode_getfattr(&xdr, res->f_attr, res->server) != 0)
goto out;
if ((status = decode_restorefh(&xdr)) != 0)
if (decode_restorefh(&xdr) != 0)
goto out;
decode_getfattr(&xdr, res->dir_attr, res->server);
out:
Expand Down

0 comments on commit 365c8f5

Please sign in to comment.