Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130095
b: refs/heads/master
c: 4503efd
h: refs/heads/master
i:
  130093: 5c0810f
  130091: 0dff31b
  130087: cbaf71d
  130079: 57fa3f2
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 21, 2009
1 parent 1db08d6 commit bdefd95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72638f598ec9f05a43fcb22dc1dd8dc34c43acc1
refs/heads/master: 4503efd0891c40e30928afb4b23dc3f99c62a6b2
6 changes: 6 additions & 0 deletions trunk/fs/sysfs/bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off)
int count = min_t(size_t, bytes, PAGE_SIZE);
char *temp;

if (!bytes)
return 0;

if (size) {
if (offs > size)
return 0;
Expand Down Expand Up @@ -131,6 +134,9 @@ static ssize_t write(struct file *file, const char __user *userbuf,
int count = min_t(size_t, bytes, PAGE_SIZE);
char *temp;

if (!bytes)
return 0;

if (size) {
if (offs > size)
return 0;
Expand Down

0 comments on commit bdefd95

Please sign in to comment.