Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189572
b: refs/heads/master
c: ee5d2ac
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and Linus Torvalds committed Apr 7, 2010
1 parent 74aff87 commit d2b62a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: b1dd3b2843b3b73b7fc2ee47d96310cd1c051371
refs/heads/master: ee5d2acd5ca1534f40e06d4f0d41a940b17beb54
5 changes: 0 additions & 5 deletions trunk/drivers/char/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,6 @@ static loff_t memory_lseek(struct file *file, loff_t offset, int orig)
switch (orig) {
case SEEK_CUR:
offset += file->f_pos;
if ((unsigned long long)offset <
(unsigned long long)file->f_pos) {
ret = -EOVERFLOW;
break;
}
case SEEK_SET:
/* to avoid userland mistaking f_pos=-9 as -EBADF=-9 */
if ((unsigned long long)offset >= ~0xFFFULL) {
Expand Down

0 comments on commit d2b62a8

Please sign in to comment.