From: Harvey Harrison Date: Wed, 16 Jul 2008 01:44:02 +0000 (-0700) Subject: ath5k: explicitly check skb->len X-Git-Tag: v2.6.28-rc1~717^2~453 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=798ee9850e9bf94b4436f9c7238823322e326885;p=pandora-kernel.git ath5k: explicitly check skb->len ieee80211_get_hdrlen_from_skb internally checks that the skb is long enough to hold the full header, or it returns 0 if not. The check in ath5k does not check this case and assumes it always got the actual header length which it then checks against the skb->len plus some headroom. Change to ieee80211_hdrlen which always returns the hdrlen and keep the existing headroom check. Signed-off-by: Harvey Harrison Signed-off-by: John W. Linville --- Reading git-diff-tree failed