• Felix Fietkau's avatar
    mt76: fix potential DMA mapping leak · b4403cee
    Felix Fietkau authored
    With buf uninitialized in mt76_dma_tx_queue_skb_raw, its field skip_unmap
    could potentially inherit a non-zero value from stack garbage.
    If this happens, it will cause DMA mappings for MCU command frames to not be
    unmapped after completion
    
    Fixes: 27d5c528 ("mt76: fix double DMA unmap of the first buffer on 7615/7915")
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
    b4403cee
dma.c 14.4 KB