Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155411
b: refs/heads/master
c: 308975f
h: refs/heads/master
i:
  155409: 9f761bc
  155407: f2dc9f5
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Jul 12, 2009
1 parent aa8e39f commit 777fd4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 4ead0a2b6b3aa0b527871ec978c3ef12aafb6bfb
refs/heads/master: 308975fa7ab2a8e0b91186158128668c823790ce
6 changes: 4 additions & 2 deletions trunk/drivers/base/firmware_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,10 @@ firmware_data_read(struct kobject *kobj, struct bin_attribute *bin_attr,
ret_count = -ENODEV;
goto out;
}
if (offset > fw->size)
return 0;
if (offset > fw->size) {
ret_count = 0;
goto out;
}
if (count > fw->size - offset)
count = fw->size - offset;

Expand Down

0 comments on commit 777fd4e

Please sign in to comment.