2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 18:23:53 +08:00

[SCSI] iscsi: fix ahs len

From: tomof@acm.org

Fix AHS Length

Signed-off-by: Alex Aizman <itn780@yahoo.com>
Signed-off-by: Dmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Mike Christie 2005-09-12 21:01:41 -05:00 committed by James Bottomley
parent baebc497b4
commit 02cf9311ee

View File

@ -557,7 +557,7 @@ iscsi_hdr_recv(struct iscsi_conn *conn)
conn->data_copied = 0;
/* read AHS */
conn->in.ahslen = hdr->hlength*(4*sizeof(__u16));
conn->in.ahslen = hdr->hlength * 4;
conn->in.offset += conn->in.ahslen;
conn->in.copy -= conn->in.ahslen;
if (conn->in.copy < 0) {