OSDN Git Service

ALSA: seq: Do error checks at creating system ports
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Aug 2018 10:49:43 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Nov 2019 13:43:21 +0000 (14:43 +0100)
commitc4937eaefac2131bf2c9c40783c007e93330a7b0
tree9302e6f96ccd1e323d6fb1dd6a239d891692e8a4
parenta8fbcdcf6920b13aaa81f000093d40d78a032e43
ALSA: seq: Do error checks at creating system ports

[ Upstream commit b8e131542b47b81236ecf6768c923128e1f5db6e ]

snd_seq_system_client_init() doesn't check the errors returned from
its port creations.  Let's do it properly and handle the error paths.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/seq/seq_system.c