]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:59:08 +0000 (18:59 -0700)
commitb874e798cca577f4bc5a544f3b72939e12e3af86
tree96bfab178a7d97561700d3ef581e26043bef51a9
parent99e5722b8c83006a9dcbc67a6d34ab130672d41a
iscsi-target: Explicily clear login response PDU in exception path

commit 683497566d48f86e04d026de1ee658dd74fc1077 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/iscsi/iscsi_target_util.c