From 5dce3fb8fbe785d1f573b53a4e13a67f0a4c98b4 Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Thu, 12 Sep 2019 14:48:26 +0100 Subject: [PATCH] fuzzer: fix return value of topology loader. Return the real error code. Signed-off-by: Liam Girdwood --- tools/fuzzer/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fuzzer/topology.c b/tools/fuzzer/topology.c index 07318aeb4..cd06f2ff5 100644 --- a/tools/fuzzer/topology.c +++ b/tools/fuzzer/topology.c @@ -329,7 +329,7 @@ int parse_tplg(struct fuzz *fuzzer, char *tplg_filename) if (!fuzzer->tplg_file) { fprintf(stderr, "error: opening topology file %s\n", tplg_filename); - return -EINVAL; + return -errno; } /* file size */