]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtl8xxxu: Fix skb misuse in TX queue selection
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Wed, 31 Aug 2022 16:12:36 +0000 (19:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:23 +0000 (13:22 +0200)
commit0837d8ee0d43d769b07212709f43512206b36038
treeb1dfca732c300b8c226a3cced588755039997041
parentd8a692fd9e59de751c66f9ecb7f59f57a4a0bc8e
wifi: rtl8xxxu: Fix skb misuse in TX queue selection

[ Upstream commit 69bbbd5817c6b81d323f7a7e229c6436018b70f5 ]

rtl8xxxu_queue_select() selects the wrong TX queues because it's
reading memory from the wrong address. It expects to find ieee80211_hdr
at skb->data, but that's not the case after skb_push(). Move the call
to rtl8xxxu_queue_select() before the call to skb_push().

Fixes: 630609394850 ("New driver: rtl8xxxu (mac80211)")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/7fa4819a-4f20-b2af-b7a6-8ee01ac49295@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c