From: Johannes Berg Date: Mon, 23 Mar 2009 16:28:40 +0000 (+0100) Subject: mac80211: add skb length sanity checking X-Git-Tag: v2.6.30-rc1~642^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a220858d30604902f650074bfac5a7598bc97ea4;p=pandora-kernel.git mac80211: add skb length sanity checking We just found a bug in zd1211rw where it would reject packets in the ->tx() method but leave them modified, which would cause retransmit attempts with completely bogus skbs, eventually leading to a panic due to not having enough headroom in those. This patch adds a sanity check to mac80211 to catch such driver mistakes; in this case we warn and drop the skb. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed