Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45115
b: refs/heads/master
c: a3f99f8
h: refs/heads/master
i:
  45113: 8fe5388
  45111: cea814a
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Dec 30, 2006
1 parent 465021a commit e26dfe2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96ceeaf4ab66315a5149296bb58d8e1a9e6f2f6d
refs/heads/master: a3f99f8ba8cbd2d4e231b767b3d6236a555da38c
4 changes: 3 additions & 1 deletion trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,10 @@ static int mod_sysfs_setup(struct module *mod,
goto out;

mod->drivers_dir = kobject_add_dir(&mod->mkobj.kobj, "drivers");
if (!mod->drivers_dir)
if (!mod->drivers_dir) {
err = -ENOMEM;
goto out_unreg;
}

err = module_param_sysfs_setup(mod, kparam, num_params);
if (err)
Expand Down

0 comments on commit e26dfe2

Please sign in to comment.