Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a6dbf50f authored by Helmut Schaa's avatar Helmut Schaa Committed by Greg Kroah-Hartman
Browse files

ath9k_htc: Restore skb headroom when returning skb to mac80211



commit d2e9fc141e2aa21f4b35ee27072d84e9aa6e2ba0 upstream.

ath9k_htc adds padding between the 802.11 header and the payload during
TX by moving the header. When handing the frame back to mac80211 for TX
status handling the header is not moved back into its original position.
This can result in a too small skb headroom when entering ath9k_htc
again (due to a soft retransmission for example) causing an
skb_under_panic oops.

Fix this by moving the 802.11 header back into its original position
before returning the frame to mac80211 as other drivers like rt2x00
or ath5k do.

Reported-by: default avatarMarc Kleine-Budde <mkl@blackshift.org>
Signed-off-by: default avatarHelmut Schaa <helmut.schaa@googlemail.com>
Tested-by: default avatarMarc Kleine-Budde <mkl@blackshift.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@blackshift.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7c886152
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment