fuzzer: fix return value of topology loader.

Return the real error code.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2019-09-12 14:48:26 +01:00 committed by Liam Girdwood
parent 8cd194e624
commit 5dce3fb8fb
1 changed files with 1 additions and 1 deletions

View File

@ -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 */