git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ACPI: APEI / ERST: Fix missing error handling in erst_reader()
[pandora-kernel.git]
/
drivers
/
acpi
/
apei
/
erst.c
diff --git
a/drivers/acpi/apei/erst.c
b/drivers/acpi/apei/erst.c
index
631b947
..
93ef09c
100644
(file)
--- a/
drivers/acpi/apei/erst.c
+++ b/
drivers/acpi/apei/erst.c
@@
-1019,7
+1019,7
@@
skip:
/* The record may be cleared by others, try read next record */
if (len == -ENOENT)
goto skip;
- else if (len < sizeof(*rcd)) {
+ else if (len <
0 || len <
sizeof(*rcd)) {
rc = -EIO;
goto out;
}