Thomas Gleixner 0dad3a3014 x86/mce/AMD: Make the init code more robust
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 <markus@trippelsdorf.de>
Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-26 17:30:24 -08:00
..
2016-12-25 10:47:44 +01:00
2015-08-25 09:59:19 +02:00
2016-12-09 21:23:22 +01:00
2015-11-23 09:44:58 +01:00
2016-12-09 21:23:22 +01:00
2016-06-06 17:10:15 +02:00
2016-11-01 07:47:55 +01:00
2016-04-16 13:21:40 +02:00
2016-12-25 10:47:44 +01:00