]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf63640c4a8763b306c7490ba3377f3cd0a421b9
tree2b6c0c33e724ab0dc6e7781b690b481b2a42ebaf
parent71d18d8a33898be1367a154a0405b40fbbc4cf8a
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: dad2a43ad4d1 ("ALSA: memalloc: Support for non-contiguous page allocation")
Fixes: 552f79a6c375 ("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