diff options
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 9e7f8af12f8f..5d0ee0f0cb0e 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -749,6 +749,8 @@ static struct nfsd4_session *alloc_init_session(struct svc_rqst *rqstp, struct n | |||
749 | */ | 749 | */ |
750 | slotsize = nfsd4_sanitize_slot_size(fchan->maxresp_cached); | 750 | slotsize = nfsd4_sanitize_slot_size(fchan->maxresp_cached); |
751 | numslots = nfsd4_get_drc_mem(slotsize, fchan->maxreqs); | 751 | numslots = nfsd4_get_drc_mem(slotsize, fchan->maxreqs); |
752 | if (numslots < 1) | ||
753 | return NULL; | ||
752 | 754 | ||
753 | new = alloc_session(slotsize, numslots); | 755 | new = alloc_session(slotsize, numslots); |
754 | if (!new) { | 756 | if (!new) { |