projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff8da0
)
nfsd4: fix alloc_init_session BUILD_BUG_ON()
author
J. Bruce Fields
<bfields@redhat.com>
Mon, 27 Sep 2010 20:22:30 +0000
(16:22 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Fri, 1 Oct 2010 23:29:44 +0000
(19:29 -0400)
Note we're allocating an array of nfsd4_slot *'s, not nfsd4_slot's.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index d3f12dcc169648020f04dbc1287ff67c29e751dc..e305794328632fe002266520805db21848f4a2e8 100644
(file)
--- 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,
if (status)
goto out;
- BUILD_BUG_ON(NFSD_MAX_SLOTS_PER_SESSION * sizeof(struct nfsd4_slot)
+ BUILD_BUG_ON(NFSD_MAX_SLOTS_PER_SESSION * sizeof(struct nfsd4_slot
*
)
+ sizeof(struct nfsd4_session) > PAGE_SIZE);
status = nfserr_jukebox;