mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: fix uninitialised RXDMAD_C descriptor info
Unlike other WED-RRO queues, RXDMAD_C frames continue into the skb build
path, but mt76_dma_get_buf() skips the desc->info read for RRO queues, so
the uninitialised on-stack info was stored into skb->cb and passed to
rx_skb(); initialise it to zero.
Fixes: e50d4d710efd ("wifi: mt76: Add mt76_dma_get_rxdmad_c_buf utility routione")
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -1002,7 +1002,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget)
|
|||||||
|
|
||||||
while (done < budget) {
|
while (done < budget) {
|
||||||
bool drop = false;
|
bool drop = false;
|
||||||
u32 info;
|
u32 info = 0;
|
||||||
|
|
||||||
if (check_ddone) {
|
if (check_ddone) {
|
||||||
if (q->tail == dma_idx)
|
if (q->tail == dma_idx)
|
||||||
|
|||||||
Reference in New Issue
Block a user