projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
942d9be
)
linux: minor indent.
author
George Sapountzis
<gsap7@yahoo.gr>
Thu, 26 Apr 2007 11:16:28 +0000
(14:16 +0300)
committer
George Sapountzis
<gsap7@yahoo.gr>
Thu, 26 Apr 2007 11:16:28 +0000
(14:16 +0300)
linux-core/drm_vm.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_vm.c
b/linux-core/drm_vm.c
index
d39dfc7
..
b887153
100644
(file)
--- a/
linux-core/drm_vm.c
+++ b/
linux-core/drm_vm.c
@@
-516,8
+516,7
@@
static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma)
return -EINVAL;
}
- if (!capable(CAP_SYS_ADMIN) &&
- (dma->flags & _DRM_DMA_USE_PCI_RO)) {
+ if (!capable(CAP_SYS_ADMIN) && (dma->flags & _DRM_DMA_USE_PCI_RO)) {
vma->vm_flags &= ~(VM_WRITE | VM_MAYWRITE);
#if defined(__i386__) || defined(__x86_64__)
pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW;