|
@@ -919,9 +919,9 @@ spurious_fault(unsigned long error_code, unsigned long address)
|
|
|
int show_unhandled_signals = 1;
|
|
|
|
|
|
static inline int
|
|
|
-access_error(unsigned long error_code, int write, struct vm_area_struct *vma)
|
|
|
+access_error(unsigned long error_code, struct vm_area_struct *vma)
|
|
|
{
|
|
|
- if (write) {
|
|
|
+ if (error_code & PF_WRITE) {
|
|
|
/* write, present and write, not present: */
|
|
|
if (unlikely(!(vma->vm_flags & VM_WRITE)))
|
|
|
return 1;
|
|
@@ -1114,7 +1114,7 @@ retry:
|
|
|
* we can handle it..
|
|
|
*/
|
|
|
good_area:
|
|
|
- if (unlikely(access_error(error_code, write, vma))) {
|
|
|
+ if (unlikely(access_error(error_code, vma))) {
|
|
|
bad_area_access_error(regs, error_code, address);
|
|
|
return;
|
|
|
}
|