Vladimir Serbinenko (phcoder@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5152
-gerrit
commit e49af7aeec87bb5ec836a06f822b4224f4e8e72f Author: Vladimir Serbinenko phcoder@gmail.com Date: Wed Feb 5 23:38:29 2014 +0100
lib/memrange: Skip 0-sized resources.
Change-Id: I44194153817b8e6b641e407fc4a9e0fd5bc3f318 Signed-off-by: Vladimir Serbinenko phcoder@gmail.com --- src/lib/memrange.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/lib/memrange.c b/src/lib/memrange.c index 0ebac05..7fb6ef7 100644 --- a/src/lib/memrange.c +++ b/src/lib/memrange.c @@ -258,6 +258,9 @@ static void collect_ranges(void *gp, struct device *dev, struct resource *res) { struct collect_context *ctx = gp;
+ if (res->size == 0) + return; + memranges_insert(ctx->ranges, res->base, res->size, ctx->tag); }