@@ -141,7 +141,7 @@ good_area:
if (!(vma->vm_flags & VM_WRITE))
goto bad_area;
} else {
- if (!vma_is_accessible(vma))
+ if (unlikely(!vma_is_accessible(vma)))
goto bad_area;
}
@@ -125,7 +125,7 @@ good_area:
case 1: /* read, present */
goto acc_err;
case 0: /* read, not present */
- if (!vma_is_accessible(vma))
+ if (unlikely(!vma_is_accessible(vma)))
goto acc_err;
}
@@ -142,7 +142,7 @@ good_area:
goto bad_area;
}
} else {
- if (!vma_is_accessible(vma))
+ if (unlikely(!vma_is_accessible(vma)))
goto bad_area;
}
}