]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Fix mmap capability check
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Jul 2021 09:26:40 +0000 (11:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Jul 2021 09:28:23 +0000 (11:28 +0200)
commitc4824ae7db418aee6f50f308a20b832e58e997fd
treee44ecc04808ee75535bf9ad70670b857949d1d11
parent114613f62f42e7cbc1242c4e82076a0153043761
ALSA: pcm: Fix mmap capability check

The hw_support_mmap() doesn't cover all memory allocation types and
might use a wrong device pointer for checking the capability.
Check the all memory allocation types more completely.

Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210720092640.12338-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c