Commit 9d129978 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] (6/6) alpha fixes

 - fixed off-by-PAGE_OFFSET in populate_pmd() (alpha, again)
parent 0c579f1d
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
static inline void static inline void
pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte) pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte)
{ {
pmd_set(pmd, (pte_t *)((pte - mem_map) << PAGE_SHIFT)); pmd_set(pmd, (pte_t *)(((pte - mem_map) << PAGE_SHIFT) + PAGE_OFFSET));
} }
static inline void static inline void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment