Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39553
b: refs/heads/master
c: 99a10a6
h: refs/heads/master
i:
  39551: f65257b
v: v3
  • Loading branch information
Franck Bui-Huu authored and Linus Torvalds committed Oct 13, 2006
1 parent cba3a90 commit 8191753
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a5344a9555fffd045218aced89afd6ca0f884e10
refs/heads/master: 99a10a60ba9bedcf5d70ef81414d3e03816afa3f
4 changes: 2 additions & 2 deletions trunk/drivers/char/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ static int mmap_kmem(struct file * file, struct vm_area_struct * vma)
{
unsigned long pfn;

/* Turn a kernel-virtual address into a physical page frame */
pfn = __pa((u64)vma->vm_pgoff << PAGE_SHIFT) >> PAGE_SHIFT;
/* Turn a pfn offset into an absolute pfn */
pfn = PFN_DOWN(virt_to_phys((void *)PAGE_OFFSET)) + vma->vm_pgoff;

/*
* RED-PEN: on some architectures there is more mapped memory
Expand Down

0 comments on commit 8191753

Please sign in to comment.