Commit 718126a7 authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville
Browse files

p54: Write outside array bounds

This patch fixes a coding error which allowed the to upper-layer to
corrupt limited portions of the phy data.

Signed-off-by: default avatarChristian Lamparter <>
Signed-off-by: default avatarJohn W. Linville <>
parent 66d2d089
...@@ -317,7 +317,7 @@ static int p54_conf_tx(struct ieee80211_hw *dev, u16 queue, ...@@ -317,7 +317,7 @@ static int p54_conf_tx(struct ieee80211_hw *dev, u16 queue,
int ret; int ret;
mutex_lock(&priv->conf_mutex); mutex_lock(&priv->conf_mutex);
if ((params) && !(queue > 4)) { if (queue < dev->queues) {
P54_SET_QUEUE(priv->qos_params[queue], params->aifs, P54_SET_QUEUE(priv->qos_params[queue], params->aifs,
params->cw_min, params->cw_max, params->txop); params->cw_min, params->cw_max, params->txop);
ret = p54_set_edcf(priv); ret = p54_set_edcf(priv);
Supports Markdown
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