ALSA: ump: Fix the discard error code from snd_ump_legacy_open()
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Feb 2024 15:08:43 +0000 (16:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Feb 2024 16:06:12 +0000 (17:06 +0100)
commit49cbb7b7d36ec3ba73ce1daf7ae1d71d435453b8
treede5824578e991b0a26b511bd07019c32dccf0348
parent1fdf4e8be7059e7784fec11d30cd32784f0bdc83
ALSA: ump: Fix the discard error code from snd_ump_legacy_open()

snd_ump_legacy_open() didn't return the error code properly even if it
couldn't open.  Fix it.

Fixes: 0b5288f5fe63 ("ALSA: ump: Add legacy raw MIDI support")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20240220150843.28630-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump.c