diff options
author | J. Bruce Fields <bfields@redhat.com> | 2010-09-27 16:22:30 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-01 19:29:44 -0400 |
commit | c23753dac1d21b39facd2ad3c7340dd275b3022f (patch) | |
tree | d9abf9d9689895b4cbd704fe24e2c1c0b9975372 /fs/nfsd/nfs4state.c | |
parent | 6ff8da088766d70f0441feb982b82978a6cbf7ef (diff) |
nfsd4: fix alloc_init_session BUILD_BUG_ON()
Note we're allocating an array of nfsd4_slot *'s, not nfsd4_slot's.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index d3f12dcc1696..e30579432863 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -657,7 +657,7 @@ alloc_init_session(struct svc_rqst *rqstp, struct nfs4_client *clp, | |||
657 | if (status) | 657 | if (status) |
658 | goto out; | 658 | goto out; |
659 | 659 | ||
660 | BUILD_BUG_ON(NFSD_MAX_SLOTS_PER_SESSION * sizeof(struct nfsd4_slot) | 660 | BUILD_BUG_ON(NFSD_MAX_SLOTS_PER_SESSION * sizeof(struct nfsd4_slot *) |
661 | + sizeof(struct nfsd4_session) > PAGE_SIZE); | 661 | + sizeof(struct nfsd4_session) > PAGE_SIZE); |
662 | 662 | ||
663 | status = nfserr_jukebox; | 663 | status = nfserr_jukebox; |