From: vlnb Date: Thu, 30 Oct 2008 12:22:48 +0000 (+0000) Subject: Fixes wrong sess_count decrement on session registration failure X-Git-Url: http://git.etherboot.org/mirror/scst/.git/commitdiff_plain/5c3fa19dcfa50ab01cf58b1d04d53a8a5d128620?ds=sidebyside Fixes wrong sess_count decrement on session registration failure git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@549 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index 64e4b6b..a0632db 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -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: