Commit f5cbfeb0 authored by Alex Williamson's avatar Alex Williamson Committed by David Mosberger

[PATCH] ia64: small ACPI fix

This fix is needed to boot on Intel-based machines.
parent a61f0ba8
...@@ -152,6 +152,10 @@ acpi_get_crs_next (struct acpi_buffer *buf, int *offset) ...@@ -152,6 +152,10 @@ acpi_get_crs_next (struct acpi_buffer *buf, int *offset)
return NULL; return NULL;
res = buf->pointer + *offset; res = buf->pointer + *offset;
if (res->length <= 0)
return NULL;
*offset += res->length; *offset += res->length;
return res; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment