Skip to content

Commit def9d51

Browse files
lyakhlgirdwood
authored andcommitted
Fix regression - make default return code an error
A recent commit ec649f3 ("Convert all ELF addresses to cached for calculations") had a bug: it assumed a call to parse_uint32_hex_key() for an absent key would return an error by default, which isn't the case. To force it set the default return code to an error value. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent d48ae7a commit def9d51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/adsp_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static int parse_adsp(const toml_table_t *toml, struct parse_ctx *pctx, struct a
404404
if (ret < 0)
405405
return ret;
406406

407-
out->alias_mask = parse_uint32_hex_key(adsp, &ctx, "alias_mask", 0, &ret);
407+
out->alias_mask = parse_uint32_hex_key(adsp, &ctx, "alias_mask", -ENODATA, &ret);
408408
alias_found = !ret;
409409

410410
/* check everything parsed, 1 or 2 tables should be present */

0 commit comments

Comments
 (0)