diff options
Diffstat (limited to 'arch/powerpc/mm/lmb.c')
-rw-r--r-- | arch/powerpc/mm/lmb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/mm/lmb.c b/arch/powerpc/mm/lmb.c index 716a2906a24d..e3a1e8dc536a 100644 --- a/arch/powerpc/mm/lmb.c +++ b/arch/powerpc/mm/lmb.c | |||
@@ -146,6 +146,10 @@ static long __init lmb_add_region(struct lmb_region *rgn, unsigned long base, | |||
146 | unsigned long rgnbase = rgn->region[i].base; | 146 | unsigned long rgnbase = rgn->region[i].base; |
147 | unsigned long rgnsize = rgn->region[i].size; | 147 | unsigned long rgnsize = rgn->region[i].size; |
148 | 148 | ||
149 | if ((rgnbase == base) && (rgnsize == size)) | ||
150 | /* Already have this region, so we're done */ | ||
151 | return 0; | ||
152 | |||
149 | adjacent = lmb_addrs_adjacent(base,size,rgnbase,rgnsize); | 153 | adjacent = lmb_addrs_adjacent(base,size,rgnbase,rgnsize); |
150 | if ( adjacent > 0 ) { | 154 | if ( adjacent > 0 ) { |
151 | rgn->region[i].base -= size; | 155 | rgn->region[i].base -= size; |