Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac_dbdma: Remove leftover
dma_memory_unmap
calls
These were passing a NULL buffer pointer unconditionally, which happens to behave in a mostly benign way (except for the chance of an excess memory region unref and a bounce buffer leak). Per the function comment, this was never meant to be accepted though, and triggers an assertion with the "softmmu: Support concurrent bounce buffers" change. Given that the code in question never sets up any mappings, just remove the unnecessary dma_memory_unmap calls along with the DBDMA_io struct fields that are now entirely unused. Signed-off-by: Mattias Nissler <[email protected]> Message-Id: <[email protected]> Fixes: be1e343 ("macio: switch over to new byte-aligned DMA helpers") Reviewed-by: Mark Cave-Ayland <[email protected]> Tested-by: Mark Cave-Ayland <[email protected]> Signed-off-by: Mark Cave-Ayland <[email protected]> (cherry picked from commit 2d0a071) Signed-off-by: Michael Tokarev <[email protected]>
- Loading branch information