Sfoglia il codice sorgente

[MIPS] Make PROT_WRITE imply PROT_READ.

Ralf Baechle 18 anni fa
parent
commit
00932ba305
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      arch/mips/mm/fault.c

+ 1 - 1
arch/mips/mm/fault.c

@@ -89,7 +89,7 @@ good_area:
 		if (!(vma->vm_flags & VM_WRITE))
 			goto bad_area;
 	} else {
-		if (!(vma->vm_flags & (VM_READ | VM_EXEC)))
+		if (!(vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC)))
 			goto bad_area;
 	}