summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-13 18:29:24 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-13 23:27:25 -0700
commiteb476395fea5a45f47610bd2b7656d087e9d17d3 (patch)
tree26f1b1345d0fb984efab6f9c65dcace7fdde3de7
parent6ebb5ba17e9b84312ccaaba031d33a2406b6059d (diff)
modules/checkers: return -EINVAL on invalid module name
Not sure why this was -ENOMEM, module lookups don't allocate anything...
-rw-r--r--src/modules/checkers/checkers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/checkers/checkers.c b/src/modules/checkers/checkers.c
index 3608582..9ea89cf 100644
--- a/src/modules/checkers/checkers.c
+++ b/src/modules/checkers/checkers.c
@@ -762,7 +762,7 @@ static int checkers_setup(const til_settings_t *settings, til_setting_t **res_se
setup->fill_module = til_lookup_module(fill_module);
if (!setup->fill_module) {
til_setup_free(&setup->til_setup);
- return -ENOMEM;
+ return -EINVAL;
}
r = til_module_setup_finalize(setup->fill_module, fill_module_settings, &setup->fill_module_setup);
© All Rights Reserved