Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63221
b: refs/heads/master
c: 74c5b59
h: refs/heads/master
i:
  63219: d2b41ff
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 30, 2007
1 parent 0e0cf3d commit 8618d96
Show file tree
Hide file tree
Showing 2 changed files with 7 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: f285ea058001ef534f9e53a21aad42c2952bbad5
refs/heads/master: 74c5b597e9c2fc728c61582afdea4971a5c8ed8f
7 changes: 6 additions & 1 deletion trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,12 @@ static void __init kernel_param_sysfs_setup(const char *name,
kobject_set_name(&mk->kobj, name);
kobject_init(&mk->kobj);
ret = kobject_add(&mk->kobj);
BUG_ON(ret < 0);
if (ret) {
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");
return;
}
param_sysfs_setup(mk, kparam, num_params, name_skip);
kobject_uevent(&mk->kobj, KOBJ_ADD);
}
Expand Down

0 comments on commit 8618d96

Please sign in to comment.