[PATCH for v4.9 LTS 01/87] x86/mce/AMD: Make the init code more robust

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Thomas Gleixner [ Upstream commit 0dad3a3014a0b9e72521ff44f17e0054f43dcdea ] If mce_device_init() fails then the mce device pointer is NULL and the AMD mce code happily dereferences it. Add a sanity check. Reported-by: Markus Trippelsdorf

[PATCH for v4.9 LTS 01/87] x86/mce/AMD: Make the init code more robust

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Thomas Gleixner [ Upstream commit 0dad3a3014a0b9e72521ff44f17e0054f43dcdea ] If mce_device_init() fails then the mce device pointer is NULL and the AMD mce code happily dereferences it. Add a sanity check. Reported-by: Markus Trippelsdorf Reported-by: Boris Ostrovsky Signed-off-by: