ALSA: ump: Don't open legacy substream for an inactive group

[ Upstream commit 3978d53df7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Takashi Iwai 2024-11-29 10:45:42 +01:00 • committed by Greg Kroah-Hartman
commit fc98df1d7a