Borislav Petkov 1acd85feba x86/mce: Check regs before accessing it
Commit in Fixes accesses pt_regs before checking whether it is NULL or
not. Make sure the NULL pointer check happens first.

Fixes: 0a5b288e85bb ("x86/mce: Prevent severity computation from being instrumented")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20211217102029.GA29708@kili
2021-12-20 11:41:02 +01:00
..
2021-11-01 21:17:39 -07:00
2021-10-20 23:57:54 +02:00
2021-11-02 06:20:58 -07:00
2021-11-10 11:14:21 -08:00
2021-11-04 08:32:38 -07:00
2021-08-26 22:28:03 +02:00
2021-11-06 14:48:06 -07:00
2021-11-08 09:15:45 -08:00