]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] vmemmap: fix off-by-one bug.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 10 Jun 2008 08:03:20 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 Jun 2008 08:03:27 +0000 (10:03 +0200)
commit1c34c7ee0376cdf2d365e88fdd313d47344487ac
tree0f1606c133835abd3952af30efcee03230182139
parent1cb065fb8fcb0153c4d20594c354fab7ebf7149c
[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>
arch/s390/mm/vmem.c