mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00: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:
parent
baebc497b4
commit
02cf9311ee
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue