diff options
Diffstat (limited to 'arch/s390/mm/vmem.c')
-rw-r--r-- | arch/s390/mm/vmem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c index 07e046777243..7c1287ccf788 100644 --- a/arch/s390/mm/vmem.c +++ b/arch/s390/mm/vmem.c | |||
@@ -250,7 +250,7 @@ static int insert_memory_segment(struct memory_segment *seg) | |||
250 | { | 250 | { |
251 | struct memory_segment *tmp; | 251 | struct memory_segment *tmp; |
252 | 252 | ||
253 | if (seg->start + seg->size >= VMALLOC_START || | 253 | if (seg->start + seg->size >= VMEM_MAX_PHYS || |
254 | seg->start + seg->size < seg->start) | 254 | seg->start + seg->size < seg->start) |
255 | return -ERANGE; | 255 | return -ERANGE; |
256 | 256 | ||
@@ -360,7 +360,6 @@ void __init vmem_map_init(void) | |||
360 | { | 360 | { |
361 | int i; | 361 | int i; |
362 | 362 | ||
363 | BUILD_BUG_ON((unsigned long)VMEM_MAP + VMEM_MAP_SIZE > VMEM_MAP_MAX); | ||
364 | NODE_DATA(0)->node_mem_map = VMEM_MAP; | 363 | NODE_DATA(0)->node_mem_map = VMEM_MAP; |
365 | for (i = 0; i < MEMORY_CHUNKS && memory_chunk[i].size > 0; i++) | 364 | for (i = 0; i < MEMORY_CHUNKS && memory_chunk[i].size > 0; i++) |
366 | vmem_add_mem(memory_chunk[i].addr, memory_chunk[i].size); | 365 | vmem_add_mem(memory_chunk[i].addr, memory_chunk[i].size); |