]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix ieee80211_amsdu_aggregate frag_tail bug
authorChih-Kang Chang <gary.chang@realtek.com>
Mon, 30 Aug 2021 07:32:40 +0000 (15:32 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 Sep 2021 11:04:35 +0000 (13:04 +0200)
commitc4b4cb6e9e32c2ef6f5005e6206583b78ce7b60a
treee74f587ac7268cfeb80cac7523f5e3f62863b6db
parentde2ee44a4d2eef8773efb1902236bb24b24a4e7c
mac80211: Fix ieee80211_amsdu_aggregate frag_tail bug

In ieee80211_amsdu_aggregate() set a pointer frag_tail point to the
end of skb_shinfo(head)->frag_list, and use it to bind other skb in
the end of this function. But when execute ieee80211_amsdu_aggregate()
->ieee80211_amsdu_realloc_pad()->pskb_expand_head(), the address of
skb_shinfo(head)->frag_list will be changed. However, the
ieee80211_amsdu_aggregate() not update frag_tail after call
pskb_expand_head(). That will cause the second skb can't bind to the
head skb appropriately.So we update the address of frag_tail to fix it.

Fixes: 997eb7fcb902 ("mac80211: add A-MSDU tx support")
Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://lore.kernel.org/r/20210830073240.12736-1-pkshih@realtek.com
[reword comment]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c