diff options
author | Varun Prakash <varun@chelsio.com> | 2020-08-25 18:05:10 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-01 21:25:38 -0400 |
commit | 5528d03183fe5243416c706f64b1faa518b05130 (patch) | |
tree | 932b63ac195b7f882ec02f2dca6e29f22ec1dc4e /certs | |
parent | bc534069374966e6df0862c2f039e17cb4c2133a (diff) | |
download | linux-5528d03183fe5243416c706f64b1faa518b05130.tar.gz |
scsi: target: iscsi: Fix data digest calculation
Current code does not consider 'page_off' in data digest calculation. To
fix this, add a local variable 'first_sg' and set first_sg.offset to
sg->offset + page_off.
Link: https://lore.kernel.org/r/1598358910-3052-1-git-send-email-varun@chelsio.com
Fixes: e48354ce078c ("iscsi-target: Add iSCSI fabric support for target v4.1")
Cc: <stable@vger.kernel.org>
Reviewed-by: Mike Christie <michael.christie@oralce.com>
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions