Re: [PATCH rtw-next v11 1/4] wifi: rtw88: sdio: Handle allocation and read errors in rtw_sdio_rxfifo_recv
From: Ping-Ke Shih
Date: Tue Nov 17 2026 - 20:59:29 EST
Alastair D'Silva <alastair@xxxxxxxxxxx> wrote:
> When dev_alloc_skb() or rtw_sdio_read_port() fails, rtw_sdio_rxfifo_recv()
> returns without reading data. Because it returned void, the caller still
> counted rx_len against the loop budget while leaving data stranded in the
> FIFO.
>
> Return an error code from rtw_sdio_rxfifo_recv() on failure and break out
> of the receive loop in the caller immediately.
>
> Fixes: 65371a3f14e7 ("wifi: rtw88: sdio: Add HCI implementation for SDIO based chipsets")
> Cc: stable@xxxxxxxxxxxxxxx
> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
> Reviewed-by: Luka Gejak <luka.gejak@xxxxxxxxx>
> Signed-off-by: Alastair D'Silva <alastair@xxxxxxxxxxx>
4 patch(es) applied to rtw-next branch of rtw.git, thanks.
2fc87b00daf2 wifi: rtw88: sdio: Handle allocation and read errors in rtw_sdio_rxfifo_recv
07eb79021ca5 wifi: rtw88: sdio: Track running state and cancel TX worker on stop
a468dc94161a wifi: rtw88: sdio: Fix unhandled RX request interrupt storm
6f51fced1eaf wifi: rtw88: sdio: Split rtw_sdio_rx_isr into 8051 and 3081 variants
---
https://github.com/pkshih/rtw.git