Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80503
b: refs/heads/master
c: 1c17f4d
h: refs/heads/master
i:
  80501: 37d7c31
  80499: 0f38bd9
  80495: 3ff01cc
v: v3
  • Loading branch information
Huang, Ying authored and Ingo Molnar committed Jan 30, 2008
1 parent bc92014 commit 2813fc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2e626f45cc450c00f5f98a89b8b4c4ac3c9bf5f
refs/heads/master: 1c17f4d615f34a4ecfcf9132d643126b226f5e79
7 changes: 7 additions & 0 deletions trunk/arch/x86/mm/ioremap_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ ioremap_change_attr(unsigned long phys_addr, unsigned long size,
if (phys_addr + size - 1 < (end_pfn_map << PAGE_SHIFT)) {
unsigned long npages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
unsigned long vaddr = (unsigned long) __va(phys_addr);
int level;

/*
* If there is no identity map for this address,
* change_page_attr_addr is unnecessary
*/
if (!lookup_address(vaddr, &level))
return err;
/*
* Must use a address here and not struct page because the phys addr
* can be a in hole between nodes and not have an memmap entry.
Expand Down

0 comments on commit 2813fc9

Please sign in to comment.