Kinglong Mee 60810e5489 NFSD: Fix a memory leak in nfsd4_create_session
If failed after calling alloc_session but before init_session, nfsd will call __free_session to
free se_slots in session. But, session->se_fchannel.maxreqs is not initialized (value is zero).
So that, the memory malloced for slots will be lost in free_session_slots for maxreqs is zero.

This path sets the information for channel in alloc_session after mallocing slots succeed,
instead in init_session.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2014-01-06 15:33:54 -05:00
..
2013-10-26 15:37:26 -04:00
2011-11-07 21:10:47 -05:00
2013-02-26 02:46:08 -05:00
2013-12-10 20:35:58 -05:00
2013-10-24 23:34:51 -04:00
2013-10-24 23:34:51 -04:00
2013-02-26 02:46:08 -05:00
2013-12-10 20:35:58 -05:00
2013-07-01 17:23:06 -04:00