Received: by 10.192.165.148 with SMTP id m20csp566494imm; Wed, 25 Apr 2018 04:23:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx49P+vd6wcPseGfV3nJeyu7pBhZANQCNiiKR+lOBfjxOIMx3yJry+BCoXllKncY5JBAAJdBE X-Received: by 2002:a17:902:144:: with SMTP id 62-v6mr28837104plb.202.1524655390623; Wed, 25 Apr 2018 04:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524655390; cv=none; d=google.com; s=arc-20160816; b=Sr0eOYLMPh0qzHMbOrgvHVq9cPmhYr+yZgsp8J4sXFE0e9GDJamCeWo0xTdms6jt9/ Ow/Ji1rFfaORRKSFoQmumkZaCiW4TakUmcqfQGtaxIA7eMlUfbxu0iPJoRme5B5tkr+v JhZo8XI20KBYi/54mMhwrEEDL9911Dvd13UCCYE6m0GvLwbBxv+g7JZriimuVQCXjp1N FfasrZXLtN6p+RqrY3d4jNp+kK3pY1ocGhJ+JMwZluNYDkYJukhEhBbFP9GiSJAlFRmJ +2y86Opp0XoGDcorxyOdhdimcVcDmpURP/UVmg2mR7kCVKUoq9GF9bVpWx4YfQE//uL7 5jeQ== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=JVdhodRvBuFs1ScLrseb2DkcHoWjeDxs2E+7UoIznWU=; b=DDTux5Gqlo4eaHV5ue4v/BpNyR7uPMk86S/e6oETWQ17NQYO5oc9kmssRvuEwFJvwq jw/tLaMjLaVD11DBFM5p7tpSqITg75JxesFZMDde2Beq7hrHemudg6bqdW3v2YsTNynZ Zy0xcL6YqGQpcYtmH4T4lHVcNQ4gc/qXDV487ji/dEhQYs0fUjJvz5ugzlYKZfbP2Acb ANHFf5XSvUP6H/6XQniK0XZ5fnFy5Q5GlufJbi4WjHSwVB0hnxiQiPcL8WC+UBBzT42o iQyOnMAxhoNsUaUAE3HR/466nU2YsiTlYBv7OnFkrWnTvsfzkzfJARfTBH0dLZnhccLg zMRQ== 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 x17si15354430pfm.330.2018.04.25.04.22.56; Wed, 25 Apr 2018 04:23:10 -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 S1751432AbeDYLV5 (ORCPT + 99 others); Wed, 25 Apr 2018 07:21:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51878 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753620AbeDYKjb (ORCPT ); Wed, 25 Apr 2018 06:39:31 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AE657480; Wed, 25 Apr 2018 10:39:30 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wei Yongjun , Alexey Kardashevskiy , Corey Minyard , Sasha Levin Subject: [PATCH 4.14 062/183] ipmi/powernv: Fix error return code in ipmi_powernv_probe() Date: Wed, 25 Apr 2018 12:34:42 +0200 Message-Id: <20180425103245.022758740@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wei Yongjun [ Upstream commit e749d328b0b450aa78d562fa26a0cd8872325dd9 ] Fix to return a negative error code from the request_irq() error handling case instead of 0, as done elsewhere in this function. Fixes: dce143c3381c ("ipmi/powernv: Convert to irq event interface") Signed-off-by: Wei Yongjun Reviewed-by: Alexey Kardashevskiy Signed-off-by: Corey Minyard Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/char/ipmi/ipmi_powernv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/char/ipmi/ipmi_powernv.c +++ b/drivers/char/ipmi/ipmi_powernv.c @@ -251,8 +251,9 @@ static int ipmi_powernv_probe(struct pla ipmi->irq = opal_event_request(prop); } - if (request_irq(ipmi->irq, ipmi_opal_event, IRQ_TYPE_LEVEL_HIGH, - "opal-ipmi", ipmi)) { + rc = request_irq(ipmi->irq, ipmi_opal_event, IRQ_TYPE_LEVEL_HIGH, + "opal-ipmi", ipmi); + if (rc) { dev_warn(dev, "Unable to request irq\n"); goto err_dispose; }