Commit 02cf9311 authored by Mike Christie's avatar Mike Christie Committed by James Bottomley

[SCSI] iscsi: fix ahs len

From: tomof@acm.org

Fix AHS Length
Signed-off-by: default avatarAlex Aizman <itn780@yahoo.com>
Signed-off-by: default avatarDmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent baebc497
...@@ -557,7 +557,7 @@ iscsi_hdr_recv(struct iscsi_conn *conn) ...@@ -557,7 +557,7 @@ iscsi_hdr_recv(struct iscsi_conn *conn)
conn->data_copied = 0; conn->data_copied = 0;
/* read AHS */ /* read AHS */
conn->in.ahslen = hdr->hlength*(4*sizeof(__u16)); conn->in.ahslen = hdr->hlength * 4;
conn->in.offset += conn->in.ahslen; conn->in.offset += conn->in.ahslen;
conn->in.copy -= conn->in.ahslen; conn->in.copy -= conn->in.ahslen;
if (conn->in.copy < 0) { if (conn->in.copy < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment