summaryrefslogtreecommitdiff
path: root/sound/soc/sof/intel/pci-tgl.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-07-20 12:27:32 +0300
committerTakashi Iwai <tiwai@suse.de>2021-07-20 12:28:33 +0300
commitd371588910715ebf7fa8e3a5d21ea5169c852927 (patch)
tree2aaaa293a5c9cc4f7160375344217c91c2cbfce9 /sound/soc/sof/intel/pci-tgl.c
parentc4824ae7db418aee6f50f308a20b832e58e997fd (diff)
downloadlinux-d371588910715ebf7fa8e3a5d21ea5169c852927.tar.xz
ALSA: pcm: Fix mmap without buffer preallocation
The recent rewrite of the memory allocation helpers also changed the page extraction to a common helper, snd_sgbuf_get_page(). But this assumes implicitly that the buffer was allocated via the standard helper (usually via preallocation), and didn't consider the case of the manual buffer handling. This patch fixes it and also covers the manual buffer management. Fixes: 37af81c5998f ("ALSA: core: Abstract memory alloc helpers") Link: https://lore.kernel.org/r/20210720092732.12412-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/sof/intel/pci-tgl.c')
0 files changed, 0 insertions, 0 deletions