From c907116d6c4f471f693717f055e54a0f06db35d4 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 12 Jan 2014 14:07:18 +0100 Subject: [PATCH] fix bogus kmodloader warning https://dev.openwrt.org/ticket/14659 Signed-off-by: John Crispin --- kmodloader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kmodloader.c b/kmodloader.c index 11af0ae..7840215 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -526,6 +526,11 @@ static int main_insmod(int argc, char **argv) cur += sprintf(cur, "%s", argv[i]); } + if (!get_module_path(name)) { + fprintf(stderr, "Failed to find %s. Maybe it is a built in module ?\n", name); + return -1; + } + ret = insert_module(get_module_path(name), options); free(options); -- 2.25.1