signal/x86: Move MCE error reporting out of force_sig_info_fault
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 19 Jan 2018 19:55:17 +0000 (13:55 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 19 Sep 2018 13:50:08 +0000 (15:50 +0200)
commit40e5539463f0b9f787831ca4177206bcd4af7884
treeb622d1e76c777d0391c1eaad65b33267c58315d9
parent73f297aa072809386ef6400fb48dbfde89662291
signal/x86: Move MCE error reporting out of force_sig_info_fault

Only the call from do_sigbus will send SIGBUS due to a memory machine
check error.  Consolidate all of the machine check signal generation
code in do_sigbus and remove the now unnecessary fault parameter from
force_sig_info_fault.

Explicitly use the now constant si_code BUS_ADRERR in the call
to force_sig_info_fault from do_sigbus.

This makes the code in arch/x86/mm/fault.c easier to follower and
simpler to maintain.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/x86/mm/fault.c