diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-13 17:53:16 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-13 17:53:16 -0500 |
| commit | a6525042bfdfcab128bd91fad264de10fd24a55e (patch) | |
| tree | 088102ff69846c71c963e970a90d627498202928 /arch/x86/mm/pageattr.c | |
| parent | b9a0d06a35c382c02f471a0815e2e27cdfe1c7f9 (diff) | |
| parent | 58dab916dfb57328d50deb0aa9b3fc92efa248ff (diff) | |
Merge branch 'x86-pat-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-pat-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86 PAT: remove CPA WARN_ON for zero pte
x86 PAT: return compatible mapping to remap_pfn_range callers
x86 PAT: change track_pfn_vma_new to take pgprot_t pointer param
x86 PAT: consolidate old memtype new memtype check into a function
x86 PAT: remove PFNMAP type on track_pfn_vma_new() error
Diffstat (limited to 'arch/x86/mm/pageattr.c')
| -rw-r--r-- | arch/x86/mm/pageattr.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index e89d24815f26..4cf30dee8161 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
| @@ -555,10 +555,12 @@ repeat: | |||
| 555 | if (!pte_val(old_pte)) { | 555 | if (!pte_val(old_pte)) { |
| 556 | if (!primary) | 556 | if (!primary) |
| 557 | return 0; | 557 | return 0; |
| 558 | WARN(1, KERN_WARNING "CPA: called for zero pte. " | 558 | |
| 559 | "vaddr = %lx cpa->vaddr = %lx\n", address, | 559 | /* |
| 560 | *cpa->vaddr); | 560 | * Special error value returned, indicating that the mapping |
| 561 | return -EINVAL; | 561 | * did not exist at this address. |
| 562 | */ | ||
| 563 | return -EFAULT; | ||
| 562 | } | 564 | } |
| 563 | 565 | ||
| 564 | if (level == PG_LEVEL_4K) { | 566 | if (level == PG_LEVEL_4K) { |
