Commit dce3730d authored by Prasanna S. Panchamukhi's avatar Prasanna S. Panchamukhi Committed by Linus Torvalds

[PATCH] x86_64: do_general_protection() retval check

This patch adds the return value check for the exception notifiers at
do_general_protection as pointed out by Chuck Ebbert.
Signed-off-by: default avatarPrasanna S Panchamukhi <prasanna@in.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9b639085
...@@ -556,8 +556,9 @@ asmlinkage void do_general_protection(struct pt_regs * regs, long error_code) ...@@ -556,8 +556,9 @@ asmlinkage void do_general_protection(struct pt_regs * regs, long error_code)
regs->rip = fixup->fixup; regs->rip = fixup->fixup;
return; return;
} }
notify_die(DIE_GPF, "general protection fault", regs, error_code, if (notify_die(DIE_GPF, "general protection fault", regs,
13, SIGSEGV); error_code, 13, SIGSEGV) == NOTIFY_STOP)
return;
die("general protection fault", regs, error_code); die("general protection fault", regs, error_code);
} }
} }
......
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