diff options
author | J. Bruce Fields <bfields@redhat.com> | 2010-09-27 16:26:25 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-01 19:29:44 -0400 |
commit | dd93842457174b847b023314e5a501e5ed45caeb (patch) | |
tree | 49fb9e43b6ad65b48f735c23070ef9347ccdceec /fs/nfsd | |
parent | c23753dac1d21b39facd2ad3c7340dd275b3022f (diff) | |
download | linux-3.10-dd93842457174b847b023314e5a501e5ed45caeb.tar.gz linux-3.10-dd93842457174b847b023314e5a501e5ed45caeb.tar.bz2 linux-3.10-dd93842457174b847b023314e5a501e5ed45caeb.zip |
nfsd4: fix alloc_init_session return type
This returns an nfs error, not -ERRNO.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index e3057943286..ebddcc173ed 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -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; |