summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2006-08-31 18:09:29 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-02 13:37:21 -0500
commit753e7d3866748799e4a8769cd27ea7202654211b (patch)
tree1abee266dc83b269495133ce53ab463569e231d2 /drivers/scsi/iscsi_tcp.c
parentdd8c0d958621e3137f3e3302f7b8952041a4a1d7 (diff)
downloadop-kernel-dev-753e7d3866748799e4a8769cd27ea7202654211b.zip
op-kernel-dev-753e7d3866748799e4a8769cd27ea7202654211b.tar.gz
[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 <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r--drivers/scsi/iscsi_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 82399f7..541912a 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
OpenPOWER on IntegriCloud