I just sent the incorrect patch...
it should be
- page = pte_page(pte);
+ pfn = pte_pfn(pte);;
Cc: Vladimir Murzin <murzin.v@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
unsigned long vmalloc_to_pfn(const void *vmalloc_addr)
{
unsigned long addr = (unsigned long) vmalloc_addr;
- unsigned long pfn;
+ unsigned long pfn = 0;
pgd_t *pgd = pgd_offset_k(addr);
/*
ptep = pte_offset_map(pmd, addr);
pte = *ptep;
if (pte_present(pte))
- pfn = pte_page(pte);
+ pfn = pte_pfn(pte);
pte_unmap(ptep);
}
}