Patchwork resource allocator hole handling (simple and old)

login
register
about
Submitter Stefan Reinauer
Date 2009-10-24 22:51:01
Message ID <4AE384D5.30008@coresystems.de>
Download mbox | patch
Permalink /patch/481/
State Superseded
Headers show

Comments

Stefan Reinauer - 2009-10-24 22:51:01
See patch

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;