[S390] vmemmap: fix off-by-one bug.

If a memory range is supposed to be added to the 1:1 mapping and it
ends just below the maximum supported physical address it won't
succeed. This is because a test doesn't consider that the end address
is 1 smaller than start + size.
Fix the comparison.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by Heiko Carstens and committed by Martin Schwidefsky ee0ddadd 12829126

+1 -1
+1 -1
arch/s390/mm/vmem.c
··· 236 236 { 237 237 struct memory_segment *tmp; 238 238 239 - if (seg->start + seg->size >= VMEM_MAX_PHYS || 239 + if (seg->start + seg->size > VMEM_MAX_PHYS || 240 240 seg->start + seg->size < seg->start) 241 241 return -ERANGE; 242 242