Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75821
b: refs/heads/master
c: e43b919
h: refs/heads/master
i:
  75819: ac0f72a
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent ee808c6 commit ddfd1b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: a5815ddf26aa8208d4ad79b4fba5e6bf7d5ba688
refs/heads/master: e43b9192c59402685bd1f809068dd13aa5931570
6 changes: 2 additions & 4 deletions trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,9 @@ static void __init kernel_param_sysfs_setup(const char *name,

mk->mod = THIS_MODULE;
mk->kobj.kset = module_kset;
mk->kobj.ktype = &module_ktype;
kobject_set_name(&mk->kobj, name);
kobject_init(&mk->kobj);
ret = kobject_add(&mk->kobj);
ret = kobject_init_and_add(&mk->kobj, &module_ktype, NULL, "%s", name);
if (ret) {
kobject_put(&mk->kobj);
printk(KERN_ERR "Module '%s' failed to be added to sysfs, "
"error number %d\n", name, ret);
printk(KERN_ERR "The system will be unstable now.\n");
Expand Down

0 comments on commit ddfd1b7

Please sign in to comment.