- Backport upstream fixes: yet more PCM plugin fixes, topology fixes/cleanups, UAF fix in UCM (bsc#1181194): 0004-topology-use-inclusive-language-for-bclk.patch 0005-topology-use-inclusive-language-for-fsync.patch 0006-topology-use-inclusive-language-in-documentation.patch 0034-ucm-fix-possible-memory-leak-in-parse_verb_file.patch 0035-topology-tplg_pprint_integer-fix-coverity-uninitaliz.patch 0036-topology-tplg_add_widget_object-do-not-use-invalid-e.patch 0037-topology-tplg_decode_pcm-add-missing-log-argument-co.patch 0038-topology-parse_tuple_set-remove-dead-condition-code.patch 0039-ucm-uc_mgr_substitute_tree-fix-use-after-free.patch 0040-topology-sort_config-cleanups-use-goto-for-the-error.patch 0041-conf-USB-add-Xonar-U7-MKII-to-USB-Audio.pcm.iec958_d.patch 0042-pcm_plugin-set-the-initial-hw_ptr-appl_ptr-from-the-.patch 0043-pcm-dmix-dshare-delay-calculation-fixes-and-cleanups.patch 0044-topology-fix-parse_tuple_set-remove-dead-condition-c.patch OBS-URL: https://build.opensuse.org/request/show/865334 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=292
28 lines
829 B
Diff
28 lines
829 B
Diff
From 51e1d486ce4535923692bd1d7e59d5aa3a29cd50 Mon Sep 17 00:00:00 2001
|
|
From: Jaroslav Kysela <perex@perex.cz>
|
|
Date: Thu, 7 Jan 2021 17:40:42 +0100
|
|
Subject: [PATCH 38/44] topology: parse_tuple_set() - remove dead condition
|
|
code
|
|
|
|
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
|
---
|
|
src/topology/data.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/topology/data.c b/src/topology/data.c
|
|
index c2931bd2bbb3..5633cdc34dd9 100644
|
|
--- a/src/topology/data.c
|
|
+++ b/src/topology/data.c
|
|
@@ -860,7 +860,7 @@ static int parse_tuple_set(snd_config_t *cfg,
|
|
}
|
|
|
|
if ((type == SND_SOC_TPLG_TUPLE_TYPE_WORD
|
|
- && tuple_val > UINT_MAX)
|
|
+ /* && tuple_val > UINT_MAX */)
|
|
|| (type == SND_SOC_TPLG_TUPLE_TYPE_SHORT
|
|
&& tuple_val > USHRT_MAX)
|
|
|| (type == SND_SOC_TPLG_TUPLE_TYPE_BYTE
|
|
--
|
|
2.26.2
|
|
|