]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: memalloc: invalidate SG pages before sync
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Feb 2022 12:33:44 +0000 (13:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Feb 2022 12:36:53 +0000 (13:36 +0100)
commitc9fc0f4eb1bcb556d01e8b2b14d23f82069263d6
treeb296cf26d2dfa803fad63b13adc7406c63f3aeed
parent30aa7a8b4c0b00b8edaa6c4e0308b3c4dce98cd5
ALSA: memalloc: invalidate SG pages before sync

It seems that calling invalidate_kernel_vmap_range() is more correct
to be called before dma_sync_*(), judging from the other thread:
  https://lore.kernel.org/all/20220111085958.GA22795@lst.de/
Although this won't matter much in practice, let's fix the call order
for consistency.

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