From: Mike Christie Date: Wed, 30 Nov 2005 05:12:46 +0000 (-0600) Subject: [SCSI] iscsi: opcode check fix X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0d2f16559a9015c4daa8babfc443bf2b8740fbd9;p=openwrt%2Fstaging%2Fblogic.git [SCSI] iscsi: opcode check fix Must check only valid opcode bits. Signed-off-by: Mike Christie Signed-off-by: Alex Aizman Signed-off-by: Dmitry Yusupov Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 4fea3e4edaa7..0769e9482194 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -584,7 +584,7 @@ iscsi_hdr_recv(struct iscsi_conn *conn) } /* save opcode for later */ - conn->in.opcode = hdr->opcode; + conn->in.opcode = hdr->opcode & ISCSI_OPCODE_MASK; /* verify itt (itt encoding: age+cid+itt) */ if (hdr->itt != cpu_to_be32(ISCSI_RESERVED_TAG)) {