]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: Always send a response before terminating iSCSI connection
authorRoland Dreier <roland@purestorage.com>
Tue, 6 Nov 2012 02:02:42 +0000 (18:02 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 8 Nov 2012 04:12:08 +0000 (20:12 -0800)
commitc08a30195f4cc24388a9114edc3db4748166680c
tree542756ed3af922407814faaa38d49d9f1d6c218e
parent50df140fc8d11505858e3d2c3ce344e01a543ca3
iscsi-target: Always send a response before terminating iSCSI connection

There are some cases, for example when the initiator sends an
out-of-bounds ErrorRecoveryLevel value, where the iSCSI target
terminates the connection without sending back any error.  Audit the
login path and add appropriate iscsit_tx_login_rsp() calls to make
sure this doesn't happen.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_login.c
drivers/target/iscsi/iscsi_target_nego.c