wifi: rtw89: pci: validate release report content before using for RTL8922DE

The commit 957eda596c
("wifi: rtw89: pci: validate sequence number of TX release report")
does validation on existing chips, which somehow a release report of SKB
becomes malformed. As no clear cause found, add rules ahead for RTL8922DE
to avoid crash if it happens.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260123013957.16418-11-pkshih@realtek.com
This commit is contained in:
Ping-Ke Shih 2026-01-23 09:39:56 +08:00
parent 986aa89b76
commit 5f93d611b3

View File

@ -604,8 +604,10 @@ static void rtw89_pci_release_rpp(struct rtw89_dev *rtwdev, void *rpp)
info->parse_rpp(rtwdev, rpp, &rpp_info);
if (unlikely(rpp_info.txch == RTW89_TXCH_CH12)) {
rtw89_warn(rtwdev, "should no fwcmd release report\n");
if (unlikely(rpp_info.txch >= RTW89_TXCH_NUM ||
info->tx_dma_ch_mask & BIT(rpp_info.txch))) {
rtw89_warn(rtwdev, "should no release report on txch %d\n",
rpp_info.txch);
return;
}