[SCSI] iscsi: fix 2.6.19 data digest calculation bug
authorArne Redlich <agr@powerkom-dd.de>
Sun, 17 Dec 2006 18:10:24 +0000 (12:10 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 6 Jan 2007 14:59:23 +0000 (08:59 -0600)
commitc959e1c2a475e0ad0d24eff200de9b6dcb3710c6
tree23479aed676635bf159217f6eb19e7c130cbe5ca
parentddaf6fc85459d161c39a70a2cf9e04343dafe47f
[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>
drivers/scsi/iscsi_tcp.c