diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index c24c3c35405a..a389b423c279 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -1881,7 +1881,8 @@ static struct module *load_module(void __user *umod, | |||
1881 | module_unload_init(mod); | 1881 | module_unload_init(mod); |
1882 | 1882 | ||
1883 | /* Initialize kobject, so we can reference it. */ | 1883 | /* Initialize kobject, so we can reference it. */ |
1884 | if (mod_sysfs_init(mod) != 0) | 1884 | err = mod_sysfs_init(mod); |
1885 | if (err) | ||
1885 | goto cleanup; | 1886 | goto cleanup; |
1886 | 1887 | ||
1887 | /* Set up license info based on the info section */ | 1888 | /* Set up license info based on the info section */ |