From: Johannes Berg Date: Fri, 7 Oct 2011 12:55:39 +0000 (+0200) Subject: mac80211: dont adjust truesize X-Git-Tag: v3.2-rc1~129^2~83^2~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72267e5cfefb2b54b6a16e5775da01e26ede2953;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: John W. Linville --- 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; }