HomeFreeBSD

LinuxKPI: 802.11: fix ieee80211_schedule_txq() to avoid rtw89 panic

Description

LinuxKPI: 802.11: fix ieee80211_schedule_txq() to avoid rtw89 panic

rtw89 TX path was faulting in linuxkpi_ieee80211_next_txq() due to a
"double scheduling" check in linuxkpI_ieee80211_schedule_txq() being
incorrect:
the next pointer may be NULL there if the element is the last in the
tailq, so correctly check tqe_prev. Without the fix we may have queued
the same element to the tailq twice, and because it was the last element
and had a NULL tqe_next, that NULL value would get propogated into
another node's tqe_prev on removal, and other such nastiness.

With this rtw89 no longer panics.

Reviewed by: bz
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D47006

Details

Provenance
ashafer_badland.ioAuthored on Thu, Oct 10, 3:31 PM
bzCommitted on Thu, Oct 10, 5:42 PM
Reviewer
bz
Differential Revision
D47006: rtw89: Fix TX panics
Parents
rGd928328f8d2d: manpath.1: align lists + tag spdx
Branches
Unknown
Tags
Unknown