diff options
| author | Marek Vasut <marex@nabladev.com> | 2026-03-16 23:25:24 +0100 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-03-17 16:14:34 +0530 |
| commit | c7d812e33f3e8ca0fa9eeabf71d1c7bc3acedc09 (patch) | |
| tree | 890451701b5abd32b83c3dc5f3688368d99e2c05 /Documentation/DocBook/dvb/git@git.tavy.me:linux.git | |
| parent | f61d145999d61948a23cd436ebbfa4c3b9ab8987 (diff) | |
dmaengine: xilinx: xilinx_dma: Fix unmasked residue subtraction
The segment .control and .status fields both contain top bits which are
not part of the buffer size, the buffer size is located only in the bottom
max_buffer_len bits. To avoid interference from those top bits, mask out
the size using max_buffer_len first, and only then subtract the values.
Fixes: a575d0b4e663 ("dmaengine: xilinx_dma: Introduce xilinx_dma_get_residue")
Signed-off-by: Marek Vasut <marex@nabladev.com>
Link: https://patch.msgid.link/20260316222530.163815-1-marex@nabladev.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/DocBook/dvb/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
