diff options
author | Darren Jenkins <darrenrjenkins@gmail.com> | 2010-02-17 23:40:15 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-12 15:02:51 -0700 |
commit | 6d63e6f4f17a6cdb8f52fb4179820b6b96cab528 (patch) | |
tree | dbb4a0122d4b142db60703ef3d8e36d46b348e2d /drivers | |
parent | 3af5615059656baa13b1fe03f076e3f3367d80d4 (diff) | |
download | kernel-crypto-6d63e6f4f17a6cdb8f52fb4179820b6b96cab528.tar.gz kernel-crypto-6d63e6f4f17a6cdb8f52fb4179820b6b96cab528.tar.xz kernel-crypto-6d63e6f4f17a6cdb8f52fb4179820b6b96cab528.zip |
drivers/net/wireless/p54/txrx.c Fix off by one error
commit 088ea189c4c75cdf211146faa4b341a0f7476be6 upstream.
fix off by one error in the queue size check of p54_tx_qos_accounting_alloc()
Coverity CID: 13314
Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/p54/txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/txrx.c b/drivers/net/wireless/p54/txrx.c index b6dda2b27fb..9d147ded874 100644 --- a/drivers/net/wireless/p54/txrx.c +++ b/drivers/net/wireless/p54/txrx.c @@ -186,7 +186,7 @@ static int p54_tx_qos_accounting_alloc(struct p54_common *priv, struct ieee80211_tx_queue_stats *queue; unsigned long flags; - if (WARN_ON(p54_queue > P54_QUEUE_NUM)) + if (WARN_ON(p54_queue >= P54_QUEUE_NUM)) return -EINVAL; queue = &priv->tx_stats[p54_queue]; |