Johannes Berg a220858d30 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 <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-03-27 20:13:22 -04:00
..
2009-03-27 20:13:05 -04:00
2007-05-05 11:46:38 -07:00
2009-03-27 20:13:13 -04:00
2009-02-27 14:51:42 -05:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2009-02-27 14:51:42 -05:00
2009-03-27 20:13:13 -04:00
2009-03-27 20:13:19 -04:00
2009-02-27 14:51:42 -05:00
2009-03-27 20:13:22 -04:00
2009-03-27 20:13:21 -04:00
2008-10-31 18:05:59 -04:00
2009-03-27 20:13:21 -04:00