|
@@ -749,6 +749,8 @@ static struct nfsd4_session *alloc_init_session(struct svc_rqst *rqstp, struct n
|
|
*/
|
|
*/
|
|
slotsize = nfsd4_sanitize_slot_size(fchan->maxresp_cached);
|
|
slotsize = nfsd4_sanitize_slot_size(fchan->maxresp_cached);
|
|
numslots = nfsd4_get_drc_mem(slotsize, fchan->maxreqs);
|
|
numslots = nfsd4_get_drc_mem(slotsize, fchan->maxreqs);
|
|
|
|
+ if (numslots < 1)
|
|
|
|
+ return NULL;
|
|
|
|
|
|
new = alloc_session(slotsize, numslots);
|
|
new = alloc_session(slotsize, numslots);
|
|
if (!new) {
|
|
if (!new) {
|