This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / fs / sysfs / file.c
index cb1f3d9..47c98d0 100644 (file)
@@ -238,7 +238,7 @@ sysfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t
 
 static int check_perm(struct inode * inode, struct file * file)
 {
-       struct kobject * kobj = kobject_get(file->f_dentry->d_parent->d_fsdata);
+       struct kobject *kobj = sysfs_get_kobject(file->f_dentry->d_parent);
        struct attribute * attr = file->f_dentry->d_fsdata;
        struct sysfs_buffer * buffer;
        struct sysfs_ops * ops = NULL;