Home Home > GIT Browse > openSUSE-15.1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-01-10 20:41:49 +0100
committerTakashi Iwai <tiwai@suse.de>2019-01-11 08:35:12 +0100
commitba94bebf843cf202ec6d5b7c83d750a2816c659a (patch)
treecd2cfa2738c5c0f0ba16b5657f35cb58e8c7888c
parent132bdc7b6586b9590bf7fe0ddc5fe870ce7f295c (diff)
ALSA: seq: add error check in snd_seq_system_client_init()
(bsc#1121278). suse-commit: d778a796ad96ac29f5c7157a02f255ca05313e54
-rw-r--r--sound/core/seq/seq_system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/core/seq/seq_system.c b/sound/core/seq/seq_system.c
index 8ce1d0b40dce..3b89b0adad6a 100644
--- a/sound/core/seq/seq_system.c
+++ b/sound/core/seq/seq_system.c
@@ -134,6 +134,10 @@ int __init snd_seq_system_client_init(void)
/* register client */
sysclient = snd_seq_create_kernel_client(NULL, 0, "System");
+ if (sysclient < 0) {
+ kfree(port);
+ return sysclient;
+ }
/* register timer */
strcpy(port->name, "Timer");