diff options
author | Arne Redlich <agr@powerkom-dd.de> | 2006-12-17 13:10:24 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-01-06 09:59:23 -0500 |
commit | c959e1c2a475e0ad0d24eff200de9b6dcb3710c6 (patch) | |
tree | 23479aed676635bf159217f6eb19e7c130cbe5ca /drivers/scsi/iscsi_tcp.c | |
parent | ddaf6fc85459d161c39a70a2cf9e04343dafe47f (diff) |
[SCSI] iscsi: fix 2.6.19 data digest calculation bug
The transition from crypto_digest_*() to the crypto_hash_*() family
introduced a bug into the data digest calculation: crypto_hash_update() is
called with the number of S/G elements instead of the S/G lists data size.
Signed-off-by: Arne Redlich <arne.redlich@xiranet.com>
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index d0b139cccbbc..61e3a6124c4b 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -749,7 +749,7 @@ static int iscsi_scsi_data_in(struct iscsi_conn *conn) | |||
749 | if (!offset) | 749 | if (!offset) |
750 | crypto_hash_update( | 750 | crypto_hash_update( |
751 | &tcp_conn->rx_hash, | 751 | &tcp_conn->rx_hash, |
752 | &sg[i], 1); | 752 | &sg[i], sg[i].length); |
753 | else | 753 | else |
754 | partial_sg_digest_update( | 754 | partial_sg_digest_update( |
755 | &tcp_conn->rx_hash, | 755 | &tcp_conn->rx_hash, |