mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
s390/vmem: fix virtual vs physical address confusion
Fix virtual vs physical address confusion (which currently are the same). Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
parent
456be42aa7
commit
688fcbbb9c
|
|
@ -481,6 +481,7 @@ static int remove_pagetable(unsigned long start, unsigned long end, bool direct)
|
|||
*/
|
||||
static int vmem_add_range(unsigned long start, unsigned long size)
|
||||
{
|
||||
start = (unsigned long)__va(start);
|
||||
return add_pagetable(start, start + size, true);
|
||||
}
|
||||
|
||||
|
|
@ -489,6 +490,7 @@ static int vmem_add_range(unsigned long start, unsigned long size)
|
|||
*/
|
||||
static void vmem_remove_range(unsigned long start, unsigned long size)
|
||||
{
|
||||
start = (unsigned long)__va(start);
|
||||
remove_pagetable(start, start + size, true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user