Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2320
b: refs/heads/master
c: c76d0ab
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent 2e1823f commit b1f497b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: d48593bf208e0d046c35fb0707ae5b23fef8c4ff
refs/heads/master: c76d0abd07a9c9cf72bbb5b641e1e97f92ea8f3e
4 changes: 2 additions & 2 deletions trunk/fs/sysfs/bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fill_read(struct dentry *dentry, char *buffer, loff_t off, size_t count)
struct kobject * kobj = to_kobj(dentry->d_parent);

if (!attr->read)
return -EINVAL;
return -EIO;

return attr->read(kobj, buffer, off, count);
}
Expand Down Expand Up @@ -71,7 +71,7 @@ flush_write(struct dentry *dentry, char *buffer, loff_t offset, size_t count)
struct kobject *kobj = to_kobj(dentry->d_parent);

if (!attr->write)
return -EINVAL;
return -EIO;

return attr->write(kobj, buffer, offset, count);
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/sysfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ subsys_attr_show(struct kobject * kobj, struct attribute * attr, char * page)
{
struct subsystem * s = to_subsys(kobj);
struct subsys_attribute * sattr = to_sattr(attr);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (sattr->show)
ret = sattr->show(s,page);
Expand All @@ -36,7 +36,7 @@ subsys_attr_store(struct kobject * kobj, struct attribute * attr,
{
struct subsystem * s = to_subsys(kobj);
struct subsys_attribute * sattr = to_sattr(attr);
ssize_t ret = 0;
ssize_t ret = -EIO;

if (sattr->store)
ret = sattr->store(s,page,count);
Expand Down

0 comments on commit b1f497b

Please sign in to comment.