Skip to contentSkip to conversation

iscsi: fix ahs len

PATCH New Mike Christie 1 participant 1 message Sep 13, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/9 iscsi: fix ahs len

from [email protected]

Fix AHS Length

drivers/scsi/iscsi_tcp.c +1 -1
@@ -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) {