summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-10-07 14:55:39 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-10-11 16:41:20 -0400
commit72267e5cfefb2b54b6a16e5775da01e26ede2953 (patch)
treed69c7684f6040ee2392a9158bc6d5c346446dece /net/mac80211
parent73b9f03a813d66484105c4ed648a1aa66fa267aa (diff)
downloadop-kernel-dev-72267e5cfefb2b54b6a16e5775da01e26ede2953.zip
op-kernel-dev-72267e5cfefb2b54b6a16e5775da01e26ede2953.tar.gz
mac80211: dont adjust truesize
There's no need to adjust truesize. The history of this was that we always ran into skb_truesize_bug (via skb_truesize_check) which has since been removed in commit 92a0acce186cd. skb_truesize_check() checked that truesize was bigger or equal to the actual allocation, which would trigger in mac80211 due to header adding. The check no longer exists and we shouldn't be messing with the truesize anwyay. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/tx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 3d2b6b2..6792f52 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1402,9 +1402,6 @@ static int ieee80211_skb_resize(struct ieee80211_sub_if_data *sdata,
return -ENOMEM;
}
- /* update truesize too */
- skb->truesize += head_need + tail_need;
-
return 0;
}
OpenPOWER on IntegriCloud