diff options
Diffstat (limited to 'lib/lmb.c')
-rw-r--r-- | lib/lmb.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -184,6 +184,11 @@ static long __init lmb_add_region(struct lmb_region *rgn, u64 base, u64 size) | |||
184 | break; | 184 | break; |
185 | } | 185 | } |
186 | } | 186 | } |
187 | |||
188 | if (base < rgn->region[0].base) { | ||
189 | rgn->region[0].base = base; | ||
190 | rgn->region[0].size = size; | ||
191 | } | ||
187 | rgn->cnt++; | 192 | rgn->cnt++; |
188 | 193 | ||
189 | return 0; | 194 | return 0; |