Commit d74a8e5a authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] fix oops with firmware loading

From: Maneesh Soni <maneesh@in.ibm.com>

My fault, a bad typo in fs/sysfs/bin.c.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 220d18c7
...@@ -60,8 +60,8 @@ read(struct file * file, char __user * userbuf, size_t count, loff_t * off) ...@@ -60,8 +60,8 @@ read(struct file * file, char __user * userbuf, size_t count, loff_t * off)
static int static int
flush_write(struct dentry *dentry, char *buffer, loff_t offset, size_t count) flush_write(struct dentry *dentry, char *buffer, loff_t offset, size_t count)
{ {
struct bin_attribute *attr = to_bin_attr(dentry->d_parent); struct bin_attribute *attr = to_bin_attr(dentry);
struct kobject *kobj = to_kobj(dentry); struct kobject *kobj = to_kobj(dentry->d_parent);
return attr->write(kobj, buffer, offset, count); return attr->write(kobj, buffer, offset, count);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment