From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935171AbaFTRwu (ORCPT ); Fri, 20 Jun 2014 13:52:50 -0400 Received: from mail.skyhub.de ([78.46.96.112]:54114 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbaFTRws (ORCPT ); Fri, 20 Jun 2014 13:52:48 -0400 Date: Fri, 20 Jun 2014 19:52:40 +0200 From: Borislav Petkov To: Boris Ostrovsky Cc: tony.luck@intel.com, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, mattieu.souchaud@free.fr Subject: Re: [PATCH] x86/mce: Don't unregister CPU hotplug notifier in error path Message-ID: <20140620175240.GE11391@pd.tnic> References: <1403274493-1371-1-git-send-email-boris.ostrovsky@oracle.com> <20140620152312.GB11391@pd.tnic> <53A45627.6090306@oracle.com> <20140620155845.GC11391@pd.tnic> <53A45E67.7070000@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <53A45E67.7070000@oracle.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --