Commit 5f922fcb authored by Elena Reshetova's avatar Elena Reshetova Committed by Marcelo Henrique Cerri

carl9170: prevent speculative execution

CVE-2017-5753
CVE-2017-5715

Real commit text tbd
Signed-off-by: default avatarElena Reshetova <elena.reshetova@intel.com>
Signed-off-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
(cherry picked from commit 19299d3cee99e47bec3ace5d654eeb8fa6365bfd)
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent ffafbf6a
...@@ -1388,6 +1388,7 @@ static int carl9170_op_conf_tx(struct ieee80211_hw *hw, ...@@ -1388,6 +1388,7 @@ static int carl9170_op_conf_tx(struct ieee80211_hw *hw,
mutex_lock(&ar->mutex); mutex_lock(&ar->mutex);
if (queue < ar->hw->queues) { if (queue < ar->hw->queues) {
gmb();
memcpy(&ar->edcf[ar9170_qmap[queue]], param, sizeof(*param)); memcpy(&ar->edcf[ar9170_qmap[queue]], param, sizeof(*param));
ret = carl9170_set_qos(ar); ret = carl9170_set_qos(ar);
} else { } else {
......
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