madwifi: add some extra sanity checking
authorFelix Fietkau <nbd@openwrt.org>
Wed, 30 Jul 2008 07:05:12 +0000 (07:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 30 Jul 2008 07:05:12 +0000 (07:05 +0000)
SVN-Revision: 12006

package/madwifi/patches/373-sanity_check.patch [new file with mode: 0644]
package/madwifi/patches/405-retransmit_check.patch

diff --git a/package/madwifi/patches/373-sanity_check.patch b/package/madwifi/patches/373-sanity_check.patch
new file mode 100644 (file)
index 0000000..9c18a74
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/net80211/ieee80211_input.c
++++ b/net80211/ieee80211_input.c
+@@ -238,6 +238,9 @@
+       if (vap->iv_opmode == IEEE80211_M_MONITOR)
+               goto out;
++      if (!skb->data)
++              goto out;
++
+       if (skb->len < sizeof(struct ieee80211_frame_min)) {
+               IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
+                       ni->ni_macaddr, NULL,
index 633901433a6664295e2e893c7aa42ade6d2d52b2..66db06175da7f924b5588f387a67dd3df0766eae 100644 (file)
@@ -11,7 +11,7 @@
  #define       IEEE80211_QOS_TXOP                      0x00ff
 --- a/net80211/ieee80211_input.c
 +++ b/net80211/ieee80211_input.c
-@@ -414,7 +414,7 @@
+@@ -417,7 +417,7 @@
                                tid = 0;
                        rxseq = le16toh(*(__le16 *)wh->i_seq);
                        if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&