mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
When double session is found in q2t_create_sess the session object is updated, but after exiting from the function, if the session is not NULL the reference counter is decrement, become zero and then the session is deleted. As done while making a local session we need here to increment the reference count by calling to q2t_sess_get, because at exiting we call to q2t_sess_put. Signed-off-by: Gal Rosen <galr@storwize.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1798 d57e44dd-8a1f-0410-8b47-8ef2f437770f