On Mon, Oct 26, 2026 at 11:11:09AM +0100, Daniel Gomez wrote:
> From: Daniel Gomez <[email protected]>
> 
> Commit 99868af3d0 ("dma-helpers: explicitly pass alignment into DMA
> helpers") replaced the sub-sector remainder with the aligned size as the
> amount passed to qemu_iovec_discard_back(), effectively discarding the
> wrong chunk. Go back to discarding the tail bytes of unaligned IO.
> 
> Fixes: 99868af3d0 ("dma-helpers: explicitly pass alignment into DMA helpers")
> Acked-by: Jesper Wendel Devantier <[email protected]>
> Reviewed-by: Keith Busch <[email protected]>
> Signed-off-by: Daniel Gomez <[email protected]>
> ---
>  system/dma-helpers.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>


Reply via email to