projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ab48b0
)
[SPARC]: Respect vm_page_prot in io_remap_page_range().
author
Dave Airlie
<airlied@optimus.localdomain>
Tue, 19 Dec 2006 07:27:20 +0000
(18:27 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Tue, 19 Dec 2006 07:27:20 +0000
(18:27 +1100)
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>
linux-core/drm_vm.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_vm.c
b/linux-core/drm_vm.c
index
4f6a20e
..
a65fbc7
100644
(file)
--- 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,