From patchwork Sat Oct 24 22:51:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: resource allocator hole handling (simple and old) Date: Sat, 24 Oct 2009 22:51:01 -0000 From: Stefan Reinauer X-Patchwork-Id: 481 Message-Id: <4AE384D5.30008@coresystems.de> To: coreboot See patch Index: src/devices/device.c =================================================================== --- src/devices/device.c (revision 4842) +++ src/devices/device.c (working copy) @@ -576,7 +576,7 @@ continue; /* Is it already outside the limits? */ - if (res->size && (((res->base + res->size -1) < lim->base) || + if (!res->size || (((res->base + res->size -1) < lim->base) || (res->base > lim->limit))) continue;