signal/x86/traps: Use force_sig_bnderr
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 19 Aug 2017 17:14:49 +0000 (12:14 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 21 Sep 2018 12:46:27 +0000 (14:46 +0200)
commit851ce9e697b8a432ad1847a0c2d464b412353829
treea4b1578caa81973037b4e3efd567b1dfa5e7c27c
parent79e21d65409385a57d2c77aeb95825a28a8058c7
signal/x86/traps: Use force_sig_bnderr

Instead of generating the siginfo in x86 specific code use the new
helper function force_sig_bnderr to separate the concerns of
collecting the information and generating a proper siginfo.

Making the code easier to understand and maintain.

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