From eb476395fea5a45f47610bd2b7656d087e9d17d3 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 13 Jun 2023 18:29:24 -0700 Subject: modules/checkers: return -EINVAL on invalid module name Not sure why this was -ENOMEM, module lookups don't allocate anything... --- src/modules/checkers/checkers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3