提交 0d2f1655 编写于 作者: M Mike Christie 提交者: James Bottomley

[SCSI] iscsi: opcode check fix

Must check only valid opcode bits.
Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: NAlex Aizman <itn780@yahoo.com>
Signed-off-by: NDmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 ad94c934
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册