]> 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)
commitfee9f2d44c344e0e193333da42f456fa812bdaee
treee44ecc04808ee75535bf9ad70670b857949d1d11
parentdb50b8534857d656d22ec5359c70c6154ae9baad
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