[package] madwifi: remove cruft from madwifi.sh introduced by r15954, thanks Vasilis...
[openwrt.git] / package / madwifi / patches / 373-sanity_check.patch
1 --- a/net80211/ieee80211_input.c
2 +++ b/net80211/ieee80211_input.c
3 @@ -250,6 +250,9 @@ ieee80211_input(struct ieee80211vap * va
4         if (vap->iv_opmode == IEEE80211_M_MONITOR)
5                 goto out;
6  
7 +       if (!skb->data)
8 +               goto out;
9 +
10         if (skb->len < sizeof(struct ieee80211_frame_min)) {
11                 IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
12                         ni->ni_macaddr, NULL,