Skip to content

Commit

Permalink
[SCSI] iscsi: opcode check fix
Browse files Browse the repository at this point in the history
Must check only valid opcode bits.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Alex Aizman <itn780@yahoo.com>
Signed-off-by: Dmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Mike Christie authored and James Bottomley committed Dec 14, 2005
1 parent ad94c93 commit 0d2f165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/iscsi_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0d2f165

Please sign in to comment.