diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-07 12:50:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-07 12:50:15 +0000 |
commit | fafaa38ae55cab486f2b929a131fe433ce180224 (patch) | |
tree | 25d7e19e357623b44714e2052228a7e05eb3ade7 /package/madwifi/patches/331-memory_alloc.patch | |
parent | 6f752c725a5b592dff8c17f0fe4e905de22b8112 (diff) | |
download | upstream-fafaa38ae55cab486f2b929a131fe433ce180224.tar.gz upstream-fafaa38ae55cab486f2b929a131fe433ce180224.tar.bz2 upstream-fafaa38ae55cab486f2b929a131fe433ce180224.zip |
move a few unmaintained packages from trunk to /packages
SVN-Revision: 33634
Diffstat (limited to 'package/madwifi/patches/331-memory_alloc.patch')
-rw-r--r-- | package/madwifi/patches/331-memory_alloc.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/package/madwifi/patches/331-memory_alloc.patch b/package/madwifi/patches/331-memory_alloc.patch deleted file mode 100644 index 6b01d79c0d..0000000000 --- a/package/madwifi/patches/331-memory_alloc.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- a/ath/if_ath.c -+++ b/ath/if_ath.c -@@ -3320,17 +3320,18 @@ ath_hardstart(struct sk_buff *skb, struc - * without affecting any other bridge ports. */ - if (skb_cloned(skb)) { - /* Remember the original SKB so we can free up our references */ -- struct sk_buff *skb_orig = skb; -- skb = skb_copy(skb, GFP_ATOMIC); -- if (skb == NULL) { -+ struct sk_buff *skb_new; -+ skb_new = skb_copy(skb, GFP_ATOMIC); -+ if (skb_new == NULL) { - DPRINTF(sc, ATH_DEBUG_XMIT, - "Dropping; skb_copy failure.\n"); - /* No free RAM, do not requeue! */ - goto hardstart_fail; - } -- ieee80211_skb_copy_noderef(skb_orig, skb); -- ieee80211_dev_kfree_skb(&skb_orig); -- } -+ ieee80211_skb_copy_noderef(skb, skb_new); -+ ieee80211_dev_kfree_skb(&skb); -+ skb = skb_new; -+ } - eh = (struct ether_header *)skb->data; - - #ifdef ATH_SUPERG_FF -@@ -3601,6 +3602,8 @@ ath_mgtstart(struct ieee80211com *ic, st - sc->sc_stats.ast_tx_mgmt++; - return 0; - bad: -+ if (skb) -+ ieee80211_dev_kfree_skb(&skb); - ath_return_txbuf(sc, &bf); - return error; - } |