git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
fs
/
sysfs
/
group.c
diff --git
a/fs/sysfs/group.c
b/fs/sysfs/group.c
index
f11ac5e
..
122145b
100644
(file)
--- a/
fs/sysfs/group.c
+++ b/
fs/sysfs/group.c
@@
-11,6
+11,7
@@
#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/dcache.h>
#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/dcache.h>
+#include <linux/namei.h>
#include <linux/err.h>
#include "sysfs.h"
#include <linux/err.h>
#include "sysfs.h"
@@
-68,7
+69,8
@@
void sysfs_remove_group(struct kobject * kobj,
struct dentry * dir;
if (grp->name)
struct dentry * dir;
if (grp->name)
- dir = sysfs_get_dentry(kobj->dentry,grp->name);
+ dir = lookup_one_len(grp->name, kobj->dentry,
+ strlen(grp->name));
else
dir = dget(kobj->dentry);
else
dir = dget(kobj->dentry);