Skip to content

Commit

Permalink
net/mac80211/rx.c: fix off-by-one
Browse files Browse the repository at this point in the history
This patch fixes an off-by-one in net/mac80211/rx.c introduced by
commit 8318d78
(cfg80211 API for channels/bitrates, mac80211 and driver conversion)
and spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Adrian Bunk authored and John W. Linville committed Apr 24, 2008
1 parent 1ebebea commit 13d8fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ void __ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb,
struct ieee80211_supported_band *sband;

if (status->band < 0 ||
status->band > IEEE80211_NUM_BANDS) {
status->band >= IEEE80211_NUM_BANDS) {
WARN_ON(1);
return;
}
Expand Down

0 comments on commit 13d8fd2

Please sign in to comment.