[SCSI] iscsi: fix ahs len
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 13 Sep 2005 02:01:41 +0000 (21:01 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Tue, 20 Sep 2005 17:34:14 +0000 (12:34 -0500)
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>
drivers/scsi/iscsi_tcp.c

index baacf83..13411ca 100644 (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) {