From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> This patch fixes breakage in iscsit_do_crypto_hash_sg() where crypto_hash_update() was not referencing the current sg[] offset 'i'. Signed-off-by: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> --- drivers/target/iscsi/iscsi_target.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index d84d52b..fdeea0f 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -1243,7 +1243,7 @@ static u32 iscsit_do_crypto_hash_sg( while (data_length) { u32 cur_len = min_t(u32, data_length, (sg[i].length - page_off)); - crypto_hash_update(hash, sg, cur_len); + crypto_hash_update(hash, &sg[i], cur_len); data_length -= cur_len; page_off = 0; -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html