Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd938424 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix alloc_init_session return type



This returns an nfs error, not -ERRNO.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent c23753da
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -639,9 +639,7 @@ static inline int slot_bytes(struct nfsd4_channel_attrs *ca)
	return ca->maxresp_cached - NFSD_MIN_HDR_SEQ_SZ;
}

static int
alloc_init_session(struct svc_rqst *rqstp, struct nfs4_client *clp,
		   struct nfsd4_create_session *cses)
static __be32 alloc_init_session(struct svc_rqst *rqstp, struct nfs4_client *clp, struct nfsd4_create_session *cses)
{
	struct nfsd4_session *new, tmp;
	struct nfsd4_slot *sp;