Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35533
b: refs/heads/master
c: 1cc5f71
h: refs/heads/master
i:
  35531: 8f71c90
v: v3
  • Loading branch information
Ed Swierk authored and Linus Torvalds committed Sep 26, 2006
1 parent eea056f commit f0ae4a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bfa0e9a07cd31f3858239dbc93011b82780acf4b
refs/heads/master: 1cc5f7142eca352109895fe20b1fc6405dd17727
6 changes: 6 additions & 0 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,12 @@ static int mod_sysfs_setup(struct module *mod,
{
int err;

if (!module_subsys.kset.subsys) {
printk(KERN_ERR "%s: module_subsys not initialized\n",
mod->name);
err = -EINVAL;
goto out;
}
memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj));
err = kobject_set_name(&mod->mkobj.kobj, "%s", mod->name);
if (err)
Expand Down

0 comments on commit f0ae4a5

Please sign in to comment.