Re: [PATCH] x86/mce: Don't unregister CPU hotplug notifier in error path

From: Boris Ostrovsky
Date: Fri Jun 20 2014 - 15:38:35 EST


On 06/20/2014 01:52 PM, Borislav Petkov wrote:
On Fri, Jun 20, 2014 at 12:16:39PM -0400, Boris Ostrovsky wrote:
But I think you still need to do the dance in the notifier to make
sure you are not trying to add/remove device if mcheck_init_device()
had failed earlier.
mce_device_remove should be smart enough. Hint: mce_device_initialized
cpumask.

What about mce_device_add()?

-boris

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/