]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: fix potential NULL skb access in TX ISR
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Tue, 7 Jan 2020 08:08:07 +0000 (16:08 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:42:31 +0000 (17:42 +0200)
commiteac2253f6dfc2453d9f0bc62a2e192f7b27a6379
tree904e494898ef8d2ed34450873e13077b542d968f
parent3741303cacc64a0185091ac05438832c93b0e84b
rtw88: fix potential NULL skb access in TX ISR

Sometimes the TX queue may be empty and we could possible
dequeue a NULL pointer, crash the kernel. If the skb is NULL
then there is nothing to do, just leave the ISR.

And the TX queue should not be empty here, so print an error
to see if there is anything wrong for DMA ring.

Fixes: febe62489926 ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/pci.c