From c83ddd8e56b61140008570ac9ab532741966e51a Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 13 Apr 2021 19:13:20 +0200 Subject: [PATCH] ucm: return error if fixedboot_list is empty The application should know, that there is no special initialization sequence. It's counterpart for "ucm: return error if boot_list is empty". Signed-off-by: Jaroslav Kysela --- src/ucm/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ucm/main.c b/src/ucm/main.c index 3a56bce4..04fffa81 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -2234,6 +2234,8 @@ static int set_fixedboot_user(snd_use_case_mgr_t *uc_mgr, uc_error("error: wrong value for _fboot (%s)", value); return -EINVAL; } + if (list_empty(&uc_mgr->fixedboot_list)) + return -ENOENT; err = execute_sequence(uc_mgr, &uc_mgr->fixedboot_list, &uc_mgr->value_list, NULL, NULL); if (err < 0) { -- 2.47.1