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>
Tue, 19 Nov 2019 06:40:52 +0000 (07:40 +0100)
commit8bb2f7f347656d78880438c9b8a3db72546bf7ca
tree9302e6f96ccd1e323d6fb1dd6a239d891692e8a4
parent9742b4c1d281eb753428042cca780dc8e0f19875
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