iscsi-target: Explicily clear login response PDU in exception path
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jun 2014 21:54:38 +0000 (21:54 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 27 Jun 2014 03:56:49 +0000 (20:56 -0700)
commit683497566d48f86e04d026de1ee658dd74fc1077
tree1275a22cd78bbf6ba9a3f3334d02abccd21a64a3
parent83ff42fcce070801a3aa1cd6a3269d7426271a8d
iscsi-target: Explicily clear login response PDU in exception path

This patch adds a explicit memset to the login response PDU
exception path in iscsit_tx_login_rsp().

This addresses a regression bug introduced in commit baa4d64b
where the initiator would end up not receiving the login
response and associated status class + detail, before closing
the login connection.

Reported-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Tested-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_util.c