madwifi: fix a crash in ff handling
authorFelix Fietkau <nbd@openwrt.org>
Fri, 1 Jun 2007 18:25:18 +0000 (18:25 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 1 Jun 2007 18:25:18 +0000 (18:25 +0000)
SVN-Revision: 7435

package/madwifi/patches/114-ff_skb_fix.patch [new file with mode: 0644]

diff --git a/package/madwifi/patches/114-ff_skb_fix.patch b/package/madwifi/patches/114-ff_skb_fix.patch
new file mode 100644 (file)
index 0000000..059afb8
--- /dev/null
@@ -0,0 +1,11 @@
+diff -ur madwifi.old/net80211/ieee80211_input.c madwifi.dev/net80211/ieee80211_input.c
+--- madwifi.old/net80211/ieee80211_input.c     2007-06-01 16:44:25.174897520 +0200
++++ madwifi.dev/net80211/ieee80211_input.c     2007-06-01 17:43:52.153634328 +0200
+@@ -685,6 +685,7 @@
+                               IEEE80211_NODE_STAT(ni, rx_decap);
+                               goto err;
+                       }
++                      skb1 = skb_clone(skb, GFP_ATOMIC);
+                       /* get to the tunneled headers */
+                       ath_hdr = (struct athl2p_tunnel_hdr *)