Commit f28bc92c authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

cw1200: read beyond end of array in debug code

This has only one caller and rates[] is an array with
IEEE80211_TX_MAX_RATES (4) elements.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent aa63e18e
...@@ -190,13 +190,12 @@ static void tx_policy_build(const struct cw1200_common *priv, ...@@ -190,13 +190,12 @@ static void tx_policy_build(const struct cw1200_common *priv,
policy->retry_count += retries; policy->retry_count += retries;
} }
pr_debug("[TX policy] Policy (%zu): %d:%d, %d:%d, %d:%d, %d:%d, %d:%d\n", pr_debug("[TX policy] Policy (%zu): %d:%d, %d:%d, %d:%d, %d:%d\n",
count, count,
rates[0].idx, rates[0].count, rates[0].idx, rates[0].count,
rates[1].idx, rates[1].count, rates[1].idx, rates[1].count,
rates[2].idx, rates[2].count, rates[2].idx, rates[2].count,
rates[3].idx, rates[3].count, rates[3].idx, rates[3].count);
rates[4].idx, rates[4].count);
} }
static inline bool tx_policy_is_equal(const struct tx_policy *wanted, static inline bool tx_policy_is_equal(const struct tx_policy *wanted,
......
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