Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp839574imm; Wed, 20 Jun 2018 07:27:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAoIwtjTuN4oMwdfH8EFh2BcZRhVFwfFZEraRt8JEb8q8HtyOMIZph0rmVqmkXfPP24IQc X-Received: by 2002:a62:3ad8:: with SMTP id v85-v6mr23283061pfj.184.1529504870484; Wed, 20 Jun 2018 07:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529504870; cv=none; d=google.com; s=arc-20160816; b=l9rHK92rAE2jlBWgE+L/5duPXEW5mcOJfnQ7+W+b/5/gPwKuqfwB+MGsOgr0/F4Jrj XmxwwO8RRfQ5skwz297koIAqda0kkJSO30sUJR3LimwDqncYgJl5io7vdwvhCQ6Sc5Oc UYGmx7STi8LjEv/X2P5EUXG1+Oy7Jv8Dw8VbXVK5oBb3TbEoqlb1qvtqaTw2T9sRXhSS 8jWPWQ9dz91Ua4dsgJaK16yoO1G5s9allcVL6iH7Ds19Wb9UaJTL3S8t4mRB0FKws1Q4 JWOHuAdVUGZHDYBTTt7xR5l1JFmjRkvxHIz43uEDZbGeZCGBhpixZJY05z+c9Je2wY2V 4KEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=87+//dloLpqpLIaU702DTDEbefcj3s67aY7WyhmfhK0=; b=y8Z0C8ACT10ztBjbH1R3YbZtGACrOEVnZyVYJXOaruk6yYuVGsDFvzQTOV56IzOoJY arDRUPSgkcGVB4YbIDQZtG60UTm+9RM3n4Tb2eP7DkWXP3NsWZXL775q+wqTxieMoh32 7Du0HZztVetR6Tj2AvvbVRQaLin1ETqCleT7kg5r6odt5Lcjt3uvqo9NXB16Dn8W/KmF UqBVdX55E9Z1y3GYSDUhWmZ0dRfiOnnC7t2O/YlawDaExKFxvvsQ/c3ozhy6m3PJvYZW XPLo69uLRKFSHv3Hea2MjaAon3GuSlOME1G/v9EDWb7w2VW/bZh0pOFytg7YLVWa88LL 2wIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c81-v6si2386810pfj.138.2018.06.20.07.27.36; Wed, 20 Jun 2018 07:27:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754186AbeFTO0z (ORCPT + 99 others); Wed, 20 Jun 2018 10:26:55 -0400 Received: from smtp1.it.da.ut.ee ([193.40.5.66]:56610 "EHLO smtp1.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753619AbeFTO0x (ORCPT ); Wed, 20 Jun 2018 10:26:53 -0400 Received: from math.ut.ee (unknown [IPv6:2001:bb8:2002:2400:5054:ff:fe3b:8db9]) by smtp1.it.da.ut.ee (Postfix) with ESMTP id 0D7699002E; Wed, 20 Jun 2018 17:26:51 +0300 (EEST) Received: by math.ut.ee (Postfix, from userid 1014) id 59AC6220666; Wed, 20 Jun 2018 17:26:49 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by math.ut.ee (Postfix) with ESMTP id 5380122009D; Wed, 20 Jun 2018 17:26:49 +0300 (EEST) Date: Wed, 20 Jun 2018 17:26:49 +0300 (EEST) From: Meelis Roos To: minyard@acm.org cc: Linux Kernel list , openipmi-developer@lists.sourceforge.net, Corey Minyard Subject: Re: [PATCH] ipmi: Cleanup oops on initialization failure In-Reply-To: <1529497606-3857-1-git-send-email-minyard@acm.org> Message-ID: References: <1529497606-3857-1-git-send-email-minyard@acm.org> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Commit 93c303d2045b3 "ipmi_si: Clean up shutdown a bit" didn't > copy the behavior of the cleanup in one spot, it needed to > check for a non-NULL interface before cleaning it up. > > Signed-off-by: Corey Minyard Tested-by: Meelis Roos The corresponding dmesg: [ 7.372830] IPMI System Interface driver. [ 7.373034] ipmi_si dmi-ipmi-si.0: ipmi_platform: probing via SMBIOS [ 7.373109] ipmi_si: SMBIOS: mem 0x0 regsize 1 spacing 1 irq 0 [ 7.373182] ipmi_si: Adding SMBIOS-specified kcs state machine [ 7.373352] ipmi_si: Trying SMBIOS-specified kcs state machine at mem address 0x0, slave address 0x20, irq 0 [ 7.373479] ipmi_si dmi-ipmi-si.0: Could not set up I/O space > BTW, can you send me at least the IPMI portion of the output of > dmidecode for your machine? I have seen a lot of these where the > address in the SMBIOS tables is incorrect, and I'm wondering if > it's something in the driver, or if it's really the tables that > are bad. Handle 0x001B, DMI type 38, 18 bytes IPMI Device Information Interface Type: KCS (Keyboard Control Style) Specification Version: 2.0 I2C Slave Address: 0x10 NV Storage Device: Not Present Base Address: 0x0000000000000000 (Memory-mapped) Register Spacing: Successive Byte Boundaries > > Thanks for reporting this. On your tested-by I'll send this up > to Linus. > > -corey > > drivers/char/ipmi/ipmi_si_intf.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c > index 3d0add6..a5987f8 100644 > --- a/drivers/char/ipmi/ipmi_si_intf.c > +++ b/drivers/char/ipmi/ipmi_si_intf.c > @@ -2088,8 +2088,10 @@ static int try_smi_init(struct smi_info *new_smi) > return 0; > > out_err: > - ipmi_unregister_smi(new_smi->intf); > - new_smi->intf = NULL; > + if (new_smi->intf) { > + ipmi_unregister_smi(new_smi->intf); > + new_smi->intf = NULL; > + } > > kfree(init_name); > > -- Meelis Roos (mroos@linux.ee)