diff options
| author | Harvey Harrison <[email protected]> | 2008-07-15 18:44:02 -0700 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2008-08-22 16:29:53 -0400 |
| commit | 798ee9850e9bf94b4436f9c7238823322e326885 (patch) | |
| tree | d4af4eb4ec0c75d21b8b353ba04029c2285a4fd6 /scripts/patch-kernel | |
| parent | 7294ec955cb0c3eeefca2f4dd271c8068ab4edc5 (diff) | |
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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions