Commit 4088d9b0 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Kleber Sacilotto de Souza

Revert "qla2xxx: prevent speculative execution"

CVE-2017-5753 (revert embargoed)
CVE-2017-5715 (revert embargoed)

This reverts commit fa24f391.
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent dcb7193a
...@@ -2302,12 +2302,10 @@ qlafx00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt) ...@@ -2302,12 +2302,10 @@ qlafx00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)
req = ha->req_q_map[que]; req = ha->req_q_map[que];
/* Validate handle. */ /* Validate handle. */
if (handle < req->num_outstanding_cmds) { if (handle < req->num_outstanding_cmds)
gmb();
sp = req->outstanding_cmds[handle]; sp = req->outstanding_cmds[handle];
} else { else
sp = NULL; sp = NULL;
}
if (sp == NULL) { if (sp == NULL) {
ql_dbg(ql_dbg_io, vha, 0x3034, ql_dbg(ql_dbg_io, vha, 0x3034,
...@@ -2655,12 +2653,10 @@ qlafx00_multistatus_entry(struct scsi_qla_host *vha, ...@@ -2655,12 +2653,10 @@ qlafx00_multistatus_entry(struct scsi_qla_host *vha,
req = ha->req_q_map[que]; req = ha->req_q_map[que];
/* Validate handle. */ /* Validate handle. */
if (handle < req->num_outstanding_cmds) { if (handle < req->num_outstanding_cmds)
gmb();
sp = req->outstanding_cmds[handle]; sp = req->outstanding_cmds[handle];
} else { else
sp = NULL; sp = NULL;
}
if (sp == NULL) { if (sp == NULL) {
ql_dbg(ql_dbg_io, vha, 0x3044, ql_dbg(ql_dbg_io, vha, 0x3044,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment