Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290363
b: refs/heads/master
c: 910570b
h: refs/heads/master
i:
  290361: 3fff2a6
  290359: 892a0d9
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Feb 6, 2012
1 parent 9fcf991 commit 62a2dd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d486a5b4996d2fffd10098725781f2c5690774bc
refs/heads/master: 910570b5f4dbf75b73389010704ca6442a767a41
2 changes: 1 addition & 1 deletion trunk/net/mac80211/rate.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static bool rate_idx_match_mcs_mask(struct ieee80211_tx_rate *rate,
rbit = rate->idx % 8;

/* sanity check */
if (ridx < 0 || ridx > IEEE80211_HT_MCS_MASK_LEN)
if (ridx < 0 || ridx >= IEEE80211_HT_MCS_MASK_LEN)
return false;

/* See whether the selected rate or anything below it is allowed. */
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -5410,7 +5410,7 @@ static bool ht_rateset_to_mask(struct ieee80211_supported_band *sband,
rbit = BIT(rates[i] % 8);

/* check validity */
if ((ridx < 0) || (ridx > IEEE80211_HT_MCS_MASK_LEN))
if ((ridx < 0) || (ridx >= IEEE80211_HT_MCS_MASK_LEN))
return false;

/* check availability */
Expand Down

0 comments on commit 62a2dd0

Please sign in to comment.