[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:
parent
baebc497b4
commit
02cf9311ee
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue