x86, mce: Call put_device on device_register failure
authorLevente Kurusa <levex@linux.com>
Fri, 29 Nov 2013 20:28:48 +0000 (21:28 +0100)
committerBorislav Petkov <bp@suse.de>
Sat, 30 Nov 2013 11:14:51 +0000 (12:14 +0100)
This patch adds a call to put_device() when the device_register() call
has failed. This is required so that the last reference to the device is
given up.

Signed-off-by: Levente Kurusa <levex@linux.com>
Link: http://lkml.kernel.org/r/5298F900.9000208@linux.com
Signed-off-by: Borislav Petkov <bp@suse.de>

No differences found