summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@optimus.localdomain>2006-12-19 18:27:20 +1100
committerDave Airlie <airlied@linux.ie>2006-12-19 18:27:20 +1100
commit656c3a3737180d507bec352d56fbd9ef8b8a4feb (patch)
tree13f6198c9be0016b70d37db0893cd248e4be71a8 /linux-core
parent0ab48b0841de138f4a428a6d32d3e4d3e552db53 (diff)
[SPARC]: Respect vm_page_prot in io_remap_page_range().
Make sure the callers do a pgprot_noncached() on vma->vm_page_prot. Pointed out by Hugh Dickens. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c
index 4f6a20eb..a65fbc73 100644
--- a/linux-core/drm_vm.c
+++ b/linux-core/drm_vm.c
@@ -829,6 +829,7 @@ int drm_mmap(struct file *filp, struct vm_area_struct *vma)
vma->vm_flags |= VM_IO; /* not in core dump */
vma->vm_page_prot = drm_io_prot(map->type, vma);
#ifdef __sparc__
+ vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
if (io_remap_pfn_range(vma, vma->vm_start,
(map->offset + offset) >>PAGE_SHIFT,
vma->vm_end - vma->vm_start,