Skip to content

Commit

Permalink
mt76: dma: reset q->rx_buf on rx reset
Browse files Browse the repository at this point in the history
Fixes rx of the first frame if a fragmented rx was interrupted by the reset

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Aug 12, 2019
1 parent fb0f432 commit 76aada5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ mt76_dma_rx_reset(struct mt76_dev *dev, enum mt76_rxq_id qid)
mt76_dma_rx_cleanup(dev, q);
mt76_dma_sync_idx(dev, q);
mt76_dma_rx_fill(dev, q);

if (!q->rx_head)
return;

dev_kfree_skb(q->rx_head);
q->rx_head = NULL;
}

static void
Expand Down

0 comments on commit 76aada5

Please sign in to comment.