mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.312 (3f0bf67eeh-Rhf-ZdegJfQJlyU4ZiQ)
I'm an idiot. Shoot me now.
This commit is contained in:
1 parent
acc38e6d08
commit
d7d1bfbad3
1 file changed
+3
-3
@@ -50,7 +50,7 @@ static int direct_remap_page(unsigned long from, unsigned long phys_addr, pgprot
|
||||
pmd = pmd_alloc(mm, dir, from);
|
||||
if (!pmd)
|
||||
return -ENOMEM;
|
||||
pte = pte_alloc(mm, pmd, address);
|
||||
pte = pte_alloc(mm, pmd, from);
|
||||
if (!pte) {
|
||||
/* XXX free pmd? */
|
||||
return -ENOMEM;
|
||||
@@ -148,11 +148,11 @@ unsigned long direct_mmap(unsigned long phys_addr, unsigned long size,
|
||||
list_add_tail(&dmmap->list, ¤t->mm->context.direct_list);
|
||||
}
|
||||
|
||||
/* Acquire mm sem? */
|
||||
/* Acquire mm sem? XXX */
|
||||
/* and perform the mapping */
|
||||
ret = direct_remap_disc_page_range(addr, phys_addr >> PAGE_SHIFT,
|
||||
tot_pages, prot);
|
||||
/* Drop mm sem? */
|
||||
/* Drop mm sem? XXX */
|
||||
|
||||
if(ret == 0)
|
||||
return addr;
|
||||
|
||||