Received: by 10.213.65.68 with SMTP id h4csp2120453imn; Sun, 8 Apr 2018 20:12:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+EsIsEPaWfyKyI+8VUWzMu0ljm8bAMnQksIJnixqgDXBdFZ89ZKcgKe4MZIRfkcT+62HHN X-Received: by 10.99.123.23 with SMTP id w23mr23681107pgc.10.1523243553119; Sun, 08 Apr 2018 20:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243553; cv=none; d=google.com; s=arc-20160816; b=fJLnUR1ZowcW08+pjUERHhtYNfOgL2At/1cUaXBIbmLcAR87n/rQs9tGqSUzQVFN0p 37UQ0ZECFbno7/btaesenvRZSdCWWiM3AH2/C13tqOBeGwEMJTfs5yLOagkeloUMB7RY v8XyCO2b9e/QJT0SpMOH+07OFSKOBDkle57EKjkVggqgTqsWaRZQQIwsDUv3R+ZZqiVv c1KFMv39GZqGLlHkMfzqUSruwTATMB70GfgkB+6vzTPdADV6peWYM0jlSZ+lcVIsOZbl mXc6RDwE+MF68Kkc4o6ME5zbBbEjhviQoBKL8DLURRuu/ZKwi4P6RpFbDtmWwquYm9d9 4kNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=FFIP7HPrtvIr10thkKgbCTJuAevq0xb9esmBYQsfYKM=; b=A4gTKYk4wgl27P6PKoi6OO1zJQhIa7fqeWj0gGB7ohmFSpqCqWXHlD2GGrtQ7BAY8H H1fQTXBlOAJY5vlmewG1mKE2JbBis77MdM5YGjeZsS2CNvXz8/LAhaBns1sX0An/OAWO xZjc3LWca/DzaXLPM3ayH7ZY74BClgh58wKp6X5+pbuLpkgxy1ndKi5m7Mv9l4fKUMl/ +52R5hw/OArwOC3OwwiMFLcVloK03wqpntfOnprfSHen3KyaxVuRzz+unPPzVdNdERZC Eylap+Z+A3IeSjE4xdngrToJYNnu3l0DBNcimslJLlO8CaLHsAGpR8O6n2+dWePf9aCJ HXUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lT1GY+Yx; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si12030672pfg.388.2018.04.08.20.11.56; Sun, 08 Apr 2018 20:12:33 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lT1GY+Yx; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757555AbeDIByF (ORCPT + 98 others); Sun, 8 Apr 2018 21:54:05 -0400 Received: from mail-sn1nam01on0094.outbound.protection.outlook.com ([104.47.32.94]:49836 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932278AbeDIAdN (ORCPT ); Sun, 8 Apr 2018 20:33:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FFIP7HPrtvIr10thkKgbCTJuAevq0xb9esmBYQsfYKM=; b=lT1GY+YxfXHenpDhGwwei0VVTTQZHjfmWVJF8tKclTLcqIGworbEws6VdtXIXcleq5/2iHWvjnagtuMTCrCpabJ3fBDOff+Z0peNe6zZX+NWg1CJe9YWGhJr3azmhah0ylcGM1+57friGZQdj6pzzUgMWZQRY7ZgEm9ayQjHxTs= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0902.namprd21.prod.outlook.com (52.132.132.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:33:07 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:33:07 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Wei Yongjun , Corey Minyard , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 236/293] ipmi/powernv: Fix error return code in ipmi_powernv_probe() Thread-Topic: [PATCH AUTOSEL for 4.9 236/293] ipmi/powernv: Fix error return code in ipmi_powernv_probe() Thread-Index: AQHTz5lUp6OFI8JOGEic0GeFSxpz+g== Date: Mon, 9 Apr 2018 00:25:57 +0000 Message-ID: <20180409002239.163177-236-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0902;7:yb+f1/SZynMzYo2j8leGRw4S+Lsm9rCtCXndsI4fzh0LEFba0/zoNNoVUEDLJd4WV0CJFHhLTqM8+LeATYqir0cm3iCvGjZ+K+IsxZEt4fq2MIkC+58jDVZiGVP06LhYB64k9NmGVZ68YrrIQje1BemQMq4Fv+Z+7Iz4biwApyFuQ6AhW8OVnzz+Lo4aTjH495IFXTuloJF7cTWxl3/lM1Fi3JQgFpXw6PRVkf5D08iIO7sQKBGX191Usgw7tDsr;20:qFzaAvbfHr63gCzCcthsobNdlEdTPBGMXJo5U3so5g+srtkzdWu6pOuY625ld/A277jJ9zC8NKBykUQKXD4e/jdpwq1XISJ3pw6DX66/iX8Fs9QfWUOKb9EZlF84o5MWra+WfSMrPCf3EsG07dDQ4KgZNxtPpH4ooMxUR1IbKLw= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 92d87e3e-e9cd-41b6-d9ec-08d59db1770a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0902; x-ms-traffictypediagnostic: DM5PR2101MB0902: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(50582790962513); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0902;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0902; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(396003)(39860400002)(39380400002)(346002)(199004)(189003)(5660300001)(478600001)(86612001)(3846002)(6116002)(106356001)(25786009)(6486002)(72206003)(10290500003)(8936002)(6436002)(76176011)(2616005)(6506007)(2900100001)(97736004)(26005)(486006)(10090500001)(36756003)(81166006)(8676002)(81156014)(59450400001)(102836004)(2906002)(99286004)(11346002)(476003)(3660700001)(66066001)(6512007)(575784001)(86362001)(53936002)(105586002)(186003)(5250100002)(14454004)(22452003)(6666003)(2501003)(446003)(7736002)(316002)(4477795004)(1076002)(110136005)(3280700002)(68736007)(54906003)(107886003)(4326008)(305945005)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0902;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UlvCKaS+1kJF0sZkTu+fkWVrmienmO+vSThCMGYz4us8K/Jc2YahopLzN/ItQ2nHk8lFHOCC95625GKSZBqdGskvbqeCGnhlKkbAAInv4fuUIQp8/rfy74dlRbA5hUZnH7GfITP9dIIvHRZ2fir1svk1ydk6DtZce+GpkilqlF+KN9TA9JjFJxgnKLGHiOwgfs9AP61zWObHWWwmpgRkgZUP+qpHvGTftxHXqg0KawEP61nhZNB5yGdQ/+a398S6Ksd/0KYGhQ/ihy81+n1W1bGlcR0TfqTjoB0g+fXBvHsaPcyEqUdzIuB3rUPFKa4CoFmXgSfdkPRIZ0H/uHPC10MPiUI/35adJdLmTj2SKKHxAWg7YgDYaxRRyZWwAJLbUcxXEQoCd50HgdH0bYwyxvfGZ9CM5+mc5MOEYp1jq7g= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92d87e3e-e9cd-41b6-d9ec-08d59db1770a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:25:57.4880 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0902 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/char/ipmi/ipmi_powernv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/char/ipmi/ipmi_powernv.c b/drivers/char/ipmi/ipmi_powe= rnv.c index 6e658aa114f1..a70518a4fcec 100644 --- a/drivers/char/ipmi/ipmi_powernv.c +++ b/drivers/char/ipmi/ipmi_powernv.c @@ -251,8 +251,9 @@ static int ipmi_powernv_probe(struct platform_device *p= dev) ipmi->irq =3D opal_event_request(prop); } =20 - if (request_irq(ipmi->irq, ipmi_opal_event, IRQ_TYPE_LEVEL_HIGH, - "opal-ipmi", ipmi)) { + rc =3D 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; } --=20 2.15.1