Get the resource allocator work nicely on the kontron (with PCIe memory hole)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>


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;
 
