Takashi Iwai
d7548a4249
- Bump to version 1.0.27.1, including previous fixes, USB config quirks, addition of UCM configs and other misc fix patches - Backport upstream fixes: 0001-pcm-Fix-typo-in-documentation-PREPARE-PREPARED.patch 0002-ucm-Fix-segfault-when-device-argument-is-missing-fro.patch OBS-URL: https://build.opensuse.org/request/show/176489 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=133
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 14d653d7c374f9ba6319a7c5a8ee6f0bc3071304 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Juho=20H=C3=A4m=C3=A4l=C3=A4inen?=
|
|
<juho.hamalainen@tieto.com>
|
|
Date: Fri, 24 May 2013 14:01:25 +0300
|
|
Subject: [PATCH] ucm: Fix segfault when device argument is missing from
|
|
_sw{dev, mod}
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Juho Hämäläinen <juho.hamalainen@tieto.com>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
src/ucm/main.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/ucm/main.c b/src/ucm/main.c
|
|
index d38b7fa..0494728 100644
|
|
--- a/src/ucm/main.c
|
|
+++ b/src/ucm/main.c
|
|
@@ -1647,7 +1647,8 @@ int snd_use_case_set(snd_use_case_mgr_t *uc_mgr,
|
|
goto __end;
|
|
}
|
|
} else {
|
|
- str = NULL;
|
|
+ err = -EINVAL;
|
|
+ goto __end;
|
|
}
|
|
if (check_identifier(identifier, "_swdev"))
|
|
err = switch_device(uc_mgr, str, value);
|
|
--
|
|
1.8.2.3
|
|
|