]> 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)
commit30aa7a8b4c0b00b8edaa6c4e0308b3c4dce98cd5
tree2b6c0c33e724ab0dc6e7781b690b481b2a42ebaf
parentf58221cc338d85f76943284f1d00c38893894576
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: 4276abaf7714 ("ALSA: memalloc: Support for non-contiguous page allocation")
Fixes: 1cdb1ad44c9e ("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