Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84326
b: refs/heads/master
c: 969affd
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Feb 7, 2008
1 parent 20a55eb commit fba4f3d
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: 7d640c4a5b36c4733460065db1554da924044511
refs/heads/master: 969affd276dec81a35a5ad10d4e05e62e93b380b
7 changes: 6 additions & 1 deletion trunk/fs/sysfs/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fba4f3d

Please sign in to comment.