diff options
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
| -rw-r--r-- | fs/nfsd/nfs4proc.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 0cfd257ffdaf..8beda999e134 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -427,6 +427,7 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,  				goto out;  			open->op_openowner->oo_flags |= NFS4_OO_CONFIRMED;  			reclaim = true; +			/* fall through */  		case NFS4_OPEN_CLAIM_FH:  		case NFS4_OPEN_CLAIM_DELEG_CUR_FH:  			status = do_open_fhandle(rqstp, cstate, open); @@ -1926,6 +1927,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp)  	struct nfsd4_compound_state *cstate = &resp->cstate;  	struct svc_fh *current_fh = &cstate->current_fh;  	struct svc_fh *save_fh = &cstate->save_fh; +	struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id);  	__be32		status;  	svcxdr_init_encode(rqstp, resp); @@ -1948,7 +1950,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp)  	 * According to RFC3010, this takes precedence over all other errors.  	 */  	status = nfserr_minor_vers_mismatch; -	if (nfsd_minorversion(args->minorversion, NFSD_TEST) <= 0) +	if (nfsd_minorversion(nn, args->minorversion, NFSD_TEST) <= 0)  		goto out;  	status = nfserr_resource;  	if (args->opcnt > NFSD_MAX_OPS_PER_COMPOUND)  |