From 61344493bf4d7dc7bf7b320b57cff76117308a2c Mon Sep 17 00:00:00 2001 From: Peter Meerwald-Stadler Date: Mon, 15 Aug 2016 23:11:50 +0200 Subject: [PATCH] alsa: Check pa_modargs_get_value_boolean() retval for use_ucm CID 1137983 --- src/modules/alsa/module-alsa-card.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c index d807a82..4f1236e 100644 --- a/src/modules/alsa/module-alsa-card.c +++ b/src/modules/alsa/module-alsa-card.c @@ -741,7 +741,10 @@ int pa__init(pa_module *m) { } } - pa_modargs_get_value_boolean(u->modargs, "use_ucm", &u->use_ucm); + if (pa_modargs_get_value_boolean(u->modargs, "use_ucm", &u->use_ucm) < 0) { + pa_log("Failed to parse use_ucm argument."); + goto fail; + } /* Force ALSA to reread its configuration. This matters if our device * was hot-plugged after ALSA has already read its configuration - see -- 2.7.4