git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SUNRPC: Add an rpc_pipefs front end for the sunrpc cache code
[safe/jmp/linux-2.6]
/
drivers
/
parisc
/
eisa_eeprom.c
diff --git
a/drivers/parisc/eisa_eeprom.c
b/drivers/parisc/eisa_eeprom.c
index
685d94e
..
8c0b26e
100644
(file)
--- a/
drivers/parisc/eisa_eeprom.c
+++ b/
drivers/parisc/eisa_eeprom.c
@@
-55,7
+55,7
@@
static ssize_t eisa_eeprom_read(struct file * file,
ssize_t ret;
int i;
- if (*ppos >= HPEE_MAX_LENGTH)
+ if (*ppos
< 0 || *ppos
>= HPEE_MAX_LENGTH)
return 0;
count = *ppos + count < HPEE_MAX_LENGTH ? count : HPEE_MAX_LENGTH - *ppos;