mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
The dma_rmb() barrier was placed before dma_sync_single_for_cpu(), which
is incorrect. DMA sync must complete first to make the buffer accessible
to the CPU, then the rmb barrier ensures subsequent descriptor reads
observe the latest data written by the hardware.
Reorder the operations so dma_sync_single_for_cpu() is called before
dma_rmb() to guarantee the driver reads consistent data from the DMA
buffer.
Fixes:
|
||
|---|---|---|
| .. | ||
| hbg_common.h | ||
| hbg_debugfs.c | ||
| hbg_debugfs.h | ||
| hbg_diagnose.c | ||
| hbg_diagnose.h | ||
| hbg_err.c | ||
| hbg_err.h | ||
| hbg_ethtool.c | ||
| hbg_ethtool.h | ||
| hbg_hw.c | ||
| hbg_hw.h | ||
| hbg_irq.c | ||
| hbg_irq.h | ||
| hbg_main.c | ||
| hbg_mdio.c | ||
| hbg_mdio.h | ||
| hbg_reg.h | ||
| hbg_trace.h | ||
| hbg_txrx.c | ||
| hbg_txrx.h | ||
| Makefile | ||