Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91418
b: refs/heads/master
c: 27e6672
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala authored and David S. Miller committed Feb 14, 2008
1 parent 3dd3129 commit d6b0db5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eea89e13a9c61d3928223d2f9bf2295e22e0efb6
refs/heads/master: 27e6672bb9912d3e3a41cf88e6142d3ae5e534b3
6 changes: 6 additions & 0 deletions trunk/lib/lmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ static long __init lmb_add_region(struct lmb_region *rgn, unsigned long base,
unsigned long coalesced = 0;
long adjacent, i;

if ((rgn->cnt == 1) && (rgn->region[0].size == 0)) {
rgn->region[0].base = base;
rgn->region[0].size = size;
return 0;
}

/* First try and coalesce this LMB with another. */
for (i=0; i < rgn->cnt; i++) {
unsigned long rgnbase = rgn->region[i].base;
Expand Down

0 comments on commit d6b0db5

Please sign in to comment.