Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95630
b: refs/heads/master
c: cb8ab68
h: refs/heads/master
v: v3
  • Loading branch information
Andres Salomon authored and Ingo Molnar committed Apr 30, 2008
1 parent e8137a8 commit 5f9baa8
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5f464707c8c18fccd3c6278ad46ac94b5cf15a98
refs/heads/master: cb8ab687c32331fb548c613ae74df574bb0908c1
5 changes: 3 additions & 2 deletions trunk/arch/x86/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr,
/*
* Don't allow anybody to remap normal RAM that we're using..
*/
for (pfn = phys_addr >> PAGE_SHIFT; pfn < max_pfn_mapped &&
(pfn << PAGE_SHIFT) < last_addr; pfn++) {
for (pfn = phys_addr >> PAGE_SHIFT;
(pfn << PAGE_SHIFT) < (last_addr & PAGE_MASK);
pfn++) {

int is_ram = page_is_ram(pfn);

Expand Down

0 comments on commit 5f9baa8

Please sign in to comment.