[S390] xpram off by one error.
The xpram driver shows and uses 4096 bytes less than available. Signed-off-by: Christian Borntraeger <cborntra@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
07d43ce6a2
commit
e620c49400
@@ -453,7 +453,7 @@ static int __init xpram_init(void)
|
|||||||
PRINT_WARN("No expanded memory available\n");
|
PRINT_WARN("No expanded memory available\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
xpram_pages = xpram_highest_page_index();
|
xpram_pages = xpram_highest_page_index() + 1;
|
||||||
PRINT_INFO(" %u pages expanded memory found (%lu KB).\n",
|
PRINT_INFO(" %u pages expanded memory found (%lu KB).\n",
|
||||||
xpram_pages, (unsigned long) xpram_pages*4);
|
xpram_pages, (unsigned long) xpram_pages*4);
|
||||||
rc = xpram_setup_sizes(xpram_pages);
|
rc = xpram_setup_sizes(xpram_pages);
|
||||||
|
Reference in New Issue
Block a user