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

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

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: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 6ff8da08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;