projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebebea
)
net/mac80211/rx.c: fix off-by-one
author
Adrian Bunk
<
[email protected]
>
Wed, 23 Apr 2008 09:51:28 +0000
(12:51 +0300)
committer
John W. Linville
<
[email protected]
>
Thu, 24 Apr 2008 01:25:35 +0000
(21:25 -0400)
This patch fixes an off-by-one in net/mac80211/rx.c introduced by
commit
8318d78a44d49ac1edf2bdec7299de3617c4232e
(cfg80211 API for channels/bitrates, mac80211 and driver conversion)
and spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
net/mac80211/rx.c
patch
|
blob
|
history
diff --git
a/net/mac80211/rx.c
b/net/mac80211/rx.c
index 52e4554fdde7a292755b86ba381e9d94f694ac09..02f436a86061a33c99c3c38dc4787b03d27c6c39 100644
(file)
--- a/
net/mac80211/rx.c
+++ b/
net/mac80211/rx.c
@@
-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;
}