ALSA: memalloc: Fix dma_need_sync() checks
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Feb 2022 12:33:43 +0000 (13:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Feb 2022 12:36:39 +0000 (13:36 +0100)
commit8e1741c658996a16bd096e077dae0da2460a997f
tree2b6c0c33e724ab0dc6e7781b690b481b2a42ebaf
parent52517d9c0c011272950e1d88f1ced297daa001e9
ALSA: memalloc: Fix dma_need_sync() checks

dma_need_sync() checks each DMA address.  Fix the incorrect usages
for non-contiguous and non-coherent page allocations.
Fortunately, there are no actual call sites that need manual syncs
yet.

Fixes: a25684a95646 ("ALSA: memalloc: Support for non-contiguous page allocation")
Fixes: 73325f60e2ed ("ALSA: memalloc: Support for non-coherent page allocation")
Cc: <stable@vger.kernel.org>
Reported-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Link: https://lore.kernel.org/r/20220210123344.8756-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c