From: Felix Fietkau Date: Mon, 7 Feb 2011 11:05:00 +0000 (+0100) Subject: mac80211: fix the skb cloned check in the tx path X-Git-Tag: v2.6.38-rc5~50^2~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc7c976dc7a565213393ce700d4a6105f037bf20;p=pandora-kernel.git mac80211: fix the skb cloned check in the tx path Using skb_header_cloned to check if it's safe to write to the skb is not enough - mac80211 also touches the tailroom of the skb. Initially this check was only used to increase a counter, however this commit changed the code to also skip skb data reallocation if no extra head/tailroom was needed: commit 4cd06a344db752f513437138953af191cbe9a691 mac80211: skip unnecessary pskb_expand_head calls It added a regression at least with iwl3945, which is fixed by this patch. Reported-by: Dmitry Torokhov Signed-off-by: Felix Fietkau Tested-by: Dmitry Torokhov Signed-off-by: John W. Linville --- Reading git-diff-tree failed