diff options
| author | Thomas Fourier <fourier.thomas@gmail.com> | 2026-10-15 16:01:09 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-10-20 11:55:30 -0700 |
| commit | ff5a2a7acec1bcd0921f986c8fd1c0285ed97b50 (patch) | |
| tree | 26b5c4f63c6dc7adf0760b65f933413628a6710e /tools/lib/python/kdoc/python_version.py | |
| parent | 267bc3f113d8c441f57014c502443686f5d33d57 (diff) | |
net: ethernet: mtk_wed: Fix dma_unmap_single() size
In mtk_wed_wo_queue_refill(), the entry->buf is DMA mapped with length
q->buf_size which saved in entry->len. However, in mtk_wed_wo_dequeue(),
the same buffer is DMA unmapped with length buf_len which is set to
SKB_WITH_OVERHEAD(q->buf_size).
Change the size to q->buf_size.
This was discovered with static analysis and was only compile-tested.
Cc: stable+noautosel@kernel.org # LLM report + LLM fix, untested
Fixes: 799684448e3e ("net: ethernet: mtk_wed: introduce wed wo support")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20261015140110.41988-2-fourier.thomas@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
