projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66d2d08
)
p54: Write outside array bounds
author
Christian Lamparter
<chunkeey@web.de>
Fri, 7 Aug 2009 17:38:51 +0000
(19:38 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:45 +0000
(09:13 -0400)
This patch fixes a coding error which allowed the to upper-layer to
corrupt limited portions of the phy data.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/p54/main.c
b/drivers/net/wireless/p54/main.c
index a0d0e726bc4e7063bdd79be713c89d2a85761d6f..b99ee9b472b6a7ee3eb549ab7cb520e558947127 100644
(file)
--- a/
drivers/net/wireless/p54/main.c
+++ b/
drivers/net/wireless/p54/main.c
@@
-317,7
+317,7
@@
static int p54_conf_tx(struct ieee80211_hw *dev, u16 queue,
int ret;
mutex_lock(&priv->conf_mutex);
- if (
(params) && !(queue > 4)
) {
+ if (
queue < dev->queues
) {
P54_SET_QUEUE(priv->qos_params[queue], params->aifs,
params->cw_min, params->cw_max, params->txop);
ret = p54_set_edcf(priv);