mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 12:41:55 +00:00
x86/xen: fix arbitrary_virt_to_machine()
While I realize that the function isn't currently being used, I still think an obvious mistake like this should be corrected. Signed-off-by: Jan Beulich <jbeulich@novell.com> Acked-by: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
2584a82dee
commit
de067814d6
@ -60,7 +60,7 @@ xmaddr_t arbitrary_virt_to_machine(unsigned long address)
|
|||||||
{
|
{
|
||||||
unsigned int level;
|
unsigned int level;
|
||||||
pte_t *pte = lookup_address(address, &level);
|
pte_t *pte = lookup_address(address, &level);
|
||||||
unsigned offset = address & PAGE_MASK;
|
unsigned offset = address & ~PAGE_MASK;
|
||||||
|
|
||||||
BUG_ON(pte == NULL);
|
BUG_ON(pte == NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user