summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2005-09-12 21:01:41 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-09-20 12:34:14 -0500
commit02cf9311ee4690373ebbe62a5986025c932bead0 (patch)
tree41629c4667ad5319de6bf32abd89edae8e42add4 /drivers/scsi
parentbaebc497b43a69d7280af226e08214c527220d45 (diff)
downloadlinux-02cf9311ee4690373ebbe62a5986025c932bead0.tar.gz
linux-02cf9311ee4690373ebbe62a5986025c932bead0.tar.bz2
linux-02cf9311ee4690373ebbe62a5986025c932bead0.zip
[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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/iscsi_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index baacf836083e..13411ca3d648 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -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) {