hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/sound/core/seq/seq_system.c
....@@ -1,22 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA sequencer System services Client
34 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl>
4
- *
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- *
205 */
216
227 #include <linux/init.h>
....@@ -135,6 +120,10 @@
135120
136121 /* register client */
137122 sysclient = snd_seq_create_kernel_client(NULL, 0, "System");
123
+ if (sysclient < 0) {
124
+ kfree(port);
125
+ return sysclient;
126
+ }
138127
139128 /* register timer */
140129 strcpy(port->name, "Timer");