X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=kernel%2Fkmod.c;h=37c3c4b97b8ea66ea70ac45ad4c8403f2bc398d4;hb=c5d6c13843880ad0112f0513f3eb041b258be66e;hp=8b2b311afa957d600f13dabd6442a8657b815328;hpb=9bb715260ed4cef6948cb2e05cf670462367da71;p=linux-2.6-microblaze.git diff --git a/kernel/kmod.c b/kernel/kmod.c index 8b2b311afa95..37c3c4b97b8e 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -120,7 +120,7 @@ out: * invoke it. * * If module auto-loading support is disabled then this function - * becomes a no-operation. + * simply returns -ENOENT. */ int __request_module(bool wait, const char *fmt, ...) { @@ -137,7 +137,7 @@ int __request_module(bool wait, const char *fmt, ...) WARN_ON_ONCE(wait && current_is_async()); if (!modprobe_path[0]) - return 0; + return -ENOENT; va_start(args, fmt); ret = vsnprintf(module_name, MODULE_NAME_LEN, fmt, args);