]> 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)
commit65ccf77ee289a01a2caec2bc3750005b435a0c1a
treeb296cf26d2dfa803fad63b13adc7406c63f3aeed
parentaf63640c4a8763b306c7490ba3377f3cd0a421b9
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: dad2a43ad4d1 ("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