RE: [PATCH] wifi: rtw89: debug: fix off-by-one in rtw89_ppdu_str()
Ping-Ke Shih <[email protected]>
| Newsgroups | org.kernel.vger.linux-wireless,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
Linkai Gong <[email protected]> wrote: > rtw89_ppdu_str() uses type > ARRAY_SIZE(), so type == ARRAY_SIZE() still > indexes one past rtw89_ppdu_infos[]. Compare with >=, like > rtw89_txcmd_str(). > > Fixes: 419ed7f4a053 ("wifi: rtw89: debug: extend bb_info with TX status and PER") > Cc: [email protected] > Signed-off-by: Linkai Gong <[email protected]> The same patch [1] was applied. [1] https://lore.kernel.org/linux-wireless/[email protected]/#t