]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: ump: Don't open legacy substream for an inactive group
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 Nov 2024 09:45:42 +0000 (10:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Nov 2024 10:07:37 +0000 (11:07 +0100)
commit3978d53df7236f0a517c2abeb43ddf6ac162cdd8
tree4e840e44e8449fd5b59f9edd1a9eef2182dad8bf
parentaaa55faa2495320e44bc643a917c701f2cc89ee7
ALSA: ump: Don't open legacy substream for an inactive group

When a UMP Group is inactive, we shouldn't allow users to access it
via the legacy MIDI access.  Add the group active flag check and
return -ENODEV if it's inactive.

Link: https://patch.msgid.link/20241129094546.32119-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump.c