Received: by 10.213.65.68 with SMTP id h4csp2126866imn; Sun, 8 Apr 2018 20:23:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+6r1wDH+CBj9p9Nb1vsgqbNPb+oUnMgooM0V6XQph7Nm+gJXesWHfnw1xuuFPzZdlAYUPg X-Received: by 10.167.128.141 with SMTP id v13mr27810532pff.147.1523244210359; Sun, 08 Apr 2018 20:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523244210; cv=none; d=google.com; s=arc-20160816; b=W9IFovEuEIgOk63Ekm2j5eX62qcZwUKVB2qMrZoFHFIJ5b70dSkibIAPp678NBHuh9 FsYCUugoLHwV0VW9WNAI8z17Mz6nr4b/mXAiQaAkiKjU6EpI90sZAouS5eIIb0dw+SlR TIQ3I2bPlYwVhjlCfX9Hd3+ymJsUeS9orKCwboPSR+U3VDVrfY72+u0702qeNnoxJOU+ +R6B+6v1Fg6PXELnS6WOr9UJO54BnphpStJoRwr4VVnImgM+CnTb50k6UYAbVDTdbOt4 uWkWrMLdOZxkSIArypuAjUm9m06m+srVMBBxxIkXDuyxm26+vLxWW1PPSLgHlXkeMyb6 51fA== 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=gm4C/MWDp6rBSLYwG3Wq5coBTPdNxmjmILiiVK8o/hc=; b=t5r8qus7/3KUKvWS6y9RUdMLlpuvuS49nthWyT/jk5HvDfZ5ssRGq35CdRrDBd8Y3C jbQE9LHMu7b6Nj4iIvACIrxfitKgQoxf58BBm7yGAoaFp2mr90Yd3TaXAyvjtQ1kzvl1 qSsT9NcwDKqiDhqlGwA4zq5qh0DhO7dSRnyVCoTn1fkMqjeAFo7M8vWNoInzK4EfEzi/ R+vsvlStkv2hRksiRCv6QSrIqwGa2jxZDf+ikKFE9sjcriKavOCBEiabMwB5Hyf52goj HVao2EitdJK5jvfN6yXAKq6U3ho220D5swnlzN8oAhwOQ6gBcgtvb0npYAi4oJmYrE+0 aeDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=EzjMOHEb; 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 s10si10742539pge.41.2018.04.08.20.22.53; Sun, 08 Apr 2018 20:23:30 -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=EzjMOHEb; 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 S1753058AbeDIDTy (ORCPT + 99 others); Sun, 8 Apr 2018 23:19:54 -0400 Received: from mail-sn1nam01on0134.outbound.protection.outlook.com ([104.47.32.134]:37792 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753064AbeDIAXC (ORCPT ); Sun, 8 Apr 2018 20:23:02 -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=gm4C/MWDp6rBSLYwG3Wq5coBTPdNxmjmILiiVK8o/hc=; b=EzjMOHEb7HuwCczNgj5C5596Ph8hB4TuwHpelYh7y3tFEk+eNR3AM8DQR3b/hnbVVOphuUYi6yooBRPQg216KVudUQ728RVBTkNZJwiRxBUzeUvAv4Wy4XqsShinfggO0+Qtxo6a4OVmYOv2zmiew9UTvwpPgtnWPR99oOiJIcQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1014.namprd21.prod.outlook.com (52.132.133.36) 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:22:57 +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:22:57 +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.14 050/161] ipmi/powernv: Fix error return code in ipmi_powernv_probe() Thread-Topic: [PATCH AUTOSEL for 4.14 050/161] ipmi/powernv: Fix error return code in ipmi_powernv_probe() Thread-Index: AQHTz5iPdjDcmnUi6ki9a7REQKfxxw== Date: Mon, 9 Apr 2018 00:20:27 +0000 Message-ID: <20180409001936.162706-50-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-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;DM5PR2101MB1014;7:ZaNPRybYTeDZXsG9OVSArphgmxYVeaJTZRMROg+PkQDGYiJ/dbtgPoRMWHRkJ/bC6nZ2akycIRFjO0J3ahStodxBtiL79LnLrQTGaElJpKpIiRNLT0Bfy7AQHOiHlCAT+TRyFn1MOabApyfI8MhShoywKuZogxn2YaMKGtZkUI9B2Xk7Axcttkjheh1Peyewna0nmWT87c4JhpvNw8xJROXtd809o79Mb2e5wTpCjIagsjz56iS+ofErQFp6CdXK;20:3ZPUpjgT5FSVLBWoy7oTpafqtGWa1if4jkXqfXiJ4lK2arCE5OxMM0vhKdas8oPwLCRxlMoQyofZkqoHvBgdgSMLFwVP49T390Htq/fN3O+5q/ukN4+khrTypL7kGW/FRFE1YlOdUY3OjwL5jjI1f7KZVfhlj3Ak8NbZeDSjGyY= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: b50ba66d-2d86-4e2e-ce0d-08d59db00b81 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1014; x-ms-traffictypediagnostic: DM5PR2101MB1014: 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)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1014;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1014; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(39860400002)(39380400002)(396003)(376002)(189003)(199004)(81166006)(81156014)(478600001)(6436002)(72206003)(575784001)(8936002)(10290500003)(106356001)(99286004)(86362001)(2616005)(7736002)(2501003)(6666003)(446003)(4477795004)(476003)(8676002)(11346002)(105586002)(305945005)(5250100002)(6512007)(53936002)(68736007)(107886003)(66066001)(86612001)(2906002)(14454004)(186003)(22452003)(25786009)(4326008)(2900100001)(486006)(36756003)(6486002)(3660700001)(59450400001)(54906003)(26005)(3280700002)(110136005)(1076002)(10090500001)(76176011)(6506007)(97736004)(316002)(3846002)(6116002)(102836004)(5660300001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1014;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UYxTRFyuS4vtWXEJtNB1uNYfyW5ZYFsyfNHauij73zV7/T5XkwNiW1KGd18nMbBMYeygage5BBXhLoddAbvcKtpfYWdKrWGPxlnOFnDIgpoCm6scA56YtVnwuQCjL2xgQOMqhaWf1E7IpGJz2gyxW3gUEsX9Tl5DSLUPZ/qLhsy+PfB8C/upvqsbxJ++Ye+TkqR6BaxPKGNrz/kRBOUGQAtcknV9rJBrmptKPami4Maq6dgcarNP7VZAjObycivInv3sPXrDLSE5hWDLwV4VzAW0toMj8TdH19kqbWjE79IZIzxwEHXrc80vfhf8i2qxXR3gKj6NZ/fUck83COCAayggVYnHFuI9UWGnmeg7sEszUdudCSPWCXfqcrEdltdt0oNxNdJg/Ezjy2ishIa82Oy/5PR2LlhWca5EluQ1DvI= 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: b50ba66d-2d86-4e2e-ce0d-08d59db00b81 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:27.0194 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1014 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 b338a4becbf8..845efa0f724f 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