diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 15:45:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 15:45:28 -0500 |
commit | bfa271d026fef5d8db9a95342c38eab6f7b287a2 (patch) | |
tree | f8312f1f96edd4025640039e0f25a685f8185573 /fs/sysfs/group.c | |
parent | 123f794fa7d592644881a20801638d88521d0b06 (diff) | |
parent | 969affd276dec81a35a5ad10d4e05e62e93b380b (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
sysfs: remove BUG_ON() from sysfs_remove_group()
Driver core: Revert "Fix Firmware class name collision"
Block: Fix whole_disk attribute bug
Diffstat (limited to 'fs/sysfs/group.c')
-rw-r--r-- | fs/sysfs/group.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/sysfs/group.c b/fs/sysfs/group.c index 0871c3dadce1..477904915032 100644 --- a/fs/sysfs/group.c +++ b/fs/sysfs/group.c | |||
@@ -77,7 +77,12 @@ void sysfs_remove_group(struct kobject * kobj, | |||
77 | 77 | ||
78 | if (grp->name) { | 78 | if (grp->name) { |
79 | sd = sysfs_get_dirent(dir_sd, grp->name); | 79 | sd = sysfs_get_dirent(dir_sd, grp->name); |
80 | BUG_ON(!sd); | 80 | if (!sd) { |
81 | printk(KERN_WARNING "sysfs group %p not found for " | ||
82 | "kobject '%s'\n", grp, kobject_name(kobj)); | ||
83 | WARN_ON(!sd); | ||
84 | return; | ||
85 | } | ||
81 | } else | 86 | } else |
82 | sd = sysfs_get(dir_sd); | 87 | sd = sysfs_get(dir_sd); |
83 | 88 | ||