projects
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NET]: Fix and allocate less memory for ->priv'less netdevices
[linux-2.6]
/
fs
/
sysfs
/
group.c
diff --git
a/fs/sysfs/group.c
b/fs/sysfs/group.c
index
0871c3d
..
4779049
100644
(file)
--- a/
fs/sysfs/group.c
+++ b/
fs/sysfs/group.c
@@
-77,7
+77,12
@@
void sysfs_remove_group(struct kobject * kobj,
if (grp->name) {
sd = sysfs_get_dirent(dir_sd, grp->name);
- BUG_ON(!sd);
+ if (!sd) {
+ printk(KERN_WARNING "sysfs group %p not found for "
+ "kobject '%s'\n", grp, kobject_name(kobj));
+ WARN_ON(!sd);
+ return;
+ }
} else
sd = sysfs_get(dir_sd);