Fixes wrong sess_count decrement on session registration failure
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 30 Oct 2008 12:22:48 +0000 (12:22 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 30 Oct 2008 12:22:48 +0000 (12:22 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@549 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/qla2x00-target/qla2x00t.c

index 64e4b6b..a0632db 100644 (file)
@@ -1460,9 +1460,6 @@ out:
 
 out_free_sess:
        kfree(sess);
-       tgt->sess_count--;
-       if (tgt->sess_count == 0)
-               wake_up_all(&tgt->waitQ);
        /* go through */
 
 out_free_cmd: