From: Mike Christie Date: Thu, 31 Aug 2006 22:09:29 +0000 (-0400) Subject: [SCSI] iscsi_tcp: fix header resend X-Git-Tag: v2.6.19-rc1~1266^2~19^2~31 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=753e7d3866748799e4a8769cd27ea7202654211b;p=~emulex%2Finfiniband.git [SCSI] iscsi_tcp: fix header resend This patch built over the last ones fixes a bug in the partial header resend code, where we add on another 4 bytes to the send length on the resend. We want just the header plus digest. Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 82399f71028..541912a5b88 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -109,7 +109,7 @@ iscsi_hdr_digest(struct iscsi_conn *conn, struct iscsi_buf *buf, struct iscsi_tcp_conn *tcp_conn = conn->dd_data; crypto_digest_digest(tcp_conn->tx_tfm, &buf->sg, 1, crc); - buf->sg.length += sizeof(uint32_t); + buf->sg.length = tcp_conn->hdr_size; } static inline int