Commit 68da336a authored by Michel Lespinasse's avatar Michel Lespinasse Committed by Linus Torvalds
Browse files

x86: access_error API cleanup

access_error() already takes error_code as an argument, so there is
no need for an additional write flag.
Signed-off-by: default avatarMichel Lespinasse <>
Acked-by: default avatarRik van Riel <>
Cc: Nick Piggin <>
Acked-by: default avatarWu Fengguang <>
Cc: Ying Han <>
Cc: Peter Zijlstra <>
Cc: Ingo Molnar <>
Cc: Thomas Gleixner <>
Acked-by: default avatar"H. Peter Anvin" <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d065bd81
......@@ -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 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
* we can handle it..
if (unlikely(access_error(error_code, write, vma))) {
if (unlikely(access_error(error_code, vma))) {
bad_area_access_error(regs, error_code, address);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment