Received: by 10.213.65.68 with SMTP id h4csp2116242imn; Sun, 8 Apr 2018 20:07:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Rz6+BT9WwEvc2YqwbLibIy6hOS9zxKNGoN/uWcwPTEQqcwDTWuNHvod6L6qo9xKMphd1A X-Received: by 10.98.160.92 with SMTP id r89mr27533125pfe.235.1523243223656; Sun, 08 Apr 2018 20:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243223; cv=none; d=google.com; s=arc-20160816; b=d1PEUReVF33gb1exkVTidqJ1y6kIbxsuD9oPHIksy7gXuRe9lcIaP9VIt7hXDIS7XN 1J/a2nSOyKHWS7DTaZGLY1HjJZdyGVK4TwSK0GOP7F/j6suofoRXOXNzCXr6Vx4kyJva tsW9NVyPLVpgwH9iaINHBovDACdtVPhLfMP45fsEwrxv1AwQJOohd5jPrDx6jsbdk6C6 hrHMeMQE0jQWW8ahDBgnQ970Kw88pQwJCNu8rn9unPTgFMaVNdR7+KIXgXZ9q88xj3G7 HZ272QGXM0r5nMHzIbr3+jx4kqcY1ySxUceE5C2V21M6WMCRvlRQwCZRVlBvbhdgtUu0 6Cpg== 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=kDrccXq3wiBTuV3dOvCXS3hOW2cilLtetIOVv7KxBkgW06adFkpfZYCspbqshzrYkf C/4YtEVWExj+ZmnV1LmdV93hWmrFv8YsmShSn31B9q/jx88AjjsMCdLbpxG/DFJNoAQA RTQ9O2CTPP4CxcO4BpAco0uySuB0wf9jF4stb0tkhtsMLCJZYi2MY/M/p5smAQH4uTiV n+bbd3Q++pIfGzVSTKuNLndplbe7GQzU1Bk+PpBTl4ZAi7hbq8gh91ajqP8w+H1AQYNp TPNNx0SZNp+PyFFeoJOl5sMoNv3L0SIuxjbpG8zYCPGF+HpC+4lC/4/SjWMJ11F9jA4m qbYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=YBMbzTLV; 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 l4-v6si12905448plt.660.2018.04.08.20.06.27; Sun, 08 Apr 2018 20:07:03 -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=YBMbzTLV; 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 S932965AbeDIBNm (ORCPT + 99 others); Sun, 8 Apr 2018 21:13:42 -0400 Received: from mail-co1nam03on0137.outbound.protection.outlook.com ([104.47.40.137]:26752 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755519AbeDIAig (ORCPT ); Sun, 8 Apr 2018 20:38:36 -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=YBMbzTLVjFhF3KdGCyMxbwVd4dDpH1nUK24e/ii0fyVpdPdM5Mb6OPZN28V39/ep55Vk06T1cnJtq+Ll1lZRNNPfdWpQI47jCn1bMX9zNLnrfpg3KpQ/7RhlpmEc3ACd2XBmB0aGwgCgpvVPS38lMvu3dJIr92tkT56O7GnI58Y= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1095.namprd21.prod.outlook.com (52.132.130.17) 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:38:32 +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:38:32 +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.4 124/162] ipmi/powernv: Fix error return code in ipmi_powernv_probe() Thread-Topic: [PATCH AUTOSEL for 4.4 124/162] ipmi/powernv: Fix error return code in ipmi_powernv_probe() Thread-Index: AQHTz5nN5rPT6N/A+UKh9Ngbr+6kmg== Date: Mon, 9 Apr 2018 00:29:21 +0000 Message-ID: <20180409002738.163941-124-alexander.levin@microsoft.com> References: <20180409002738.163941-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002738.163941-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;DM5PR2101MB1095;7:jsMnGrsBbWHmu56iSufgDaSL+JOz9NjxlANlqePh5RkiBoZaQUpqBMu/7Tmbuya7wEinmOf50JaFeEiE5rzcPABb6rvZFwexV/ttyFgllI6AhD89NAhOLoGnIJi++AaI+xsxL9Izfk6qbuv+9dde3NY6dDdHOeCVSzA/OH5ulZoIW21dBOBeY1Flro4IrXWxruR7t92UhL+4ynnv73IuBrBgebjvAG6pvCfMibvKYfJh7VqmmYX6vaIAbmzbMHhc;20:k1nZJBzkp5W6chB5yeCyVLDxNCIJizOwYPqlRWQala2vSOBRWsm3/LWTr1ZvS/slnYah2JtPXm8DaxZvr4CiuHMU/b1Qhnus1mo3o6+SvMU6QVVE8XR4oDaKdvXZC60sKjLfZY4MlfvSS6RVcOCoqqO5qEBjsFTkfRGRL42RaqU= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: c25b0bfd-ef50-4fb4-9990-08d59db238dd x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1095; x-ms-traffictypediagnostic: DM5PR2101MB1095: 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)(10201501046)(3002001)(93006095)(93001095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1095;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1095; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(366004)(396003)(39860400002)(376002)(189003)(199004)(26005)(10090500001)(476003)(105586002)(86362001)(107886003)(11346002)(446003)(2616005)(102836004)(76176011)(6512007)(97736004)(575784001)(36756003)(6666003)(6506007)(8676002)(59450400001)(99286004)(4326008)(10290500003)(81156014)(86612001)(81166006)(186003)(486006)(2900100001)(106356001)(1076002)(72206003)(478600001)(305945005)(8936002)(25786009)(3660700001)(7736002)(68736007)(66066001)(110136005)(316002)(54906003)(3280700002)(2906002)(4477795004)(3846002)(6116002)(6436002)(53936002)(6486002)(22452003)(2501003)(5250100002)(14454004)(5660300001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1095;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: pU5IyHtbdZYsMtU3UC1/G6BQRNXnd1/pCVUz1O3DbBLKQvpeFrWlY8ZQAsh+mJQai7Wt2AmAO9QdfkS2JXyC2CKceEm8Le8PVaX56mPJWZOqP4X8CKxh97WckVc4n7COy9NYm85EO2BYU31ll71NMOmaKoMXVQCEr1ZAG7yLiAvcpDlSGYOUk1Wy4R5lnZ2fC6GecmLn19D533Ub/M23eO/QmmbMBECI68PmqmOuCGXkRO8icnu0ttha3MjuvO8/tI7xbItmVuYs1iVf7KwTUqyXfAgSTjtHd01Oyc7m60nWocUIintmEarnPVrzSphW7+HSNCBgKFpfsZB0AChu7eQ7iTQxwgOpJmbIYFFGUnCHb2szTL9NOhq0AE8X+6mZAMDUKeaA5paMlGq1AJVYTNKWpLYCA5N6pOWTecsv9Bs= 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: c25b0bfd-ef50-4fb4-9990-08d59db238dd X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:29:21.2243 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1095 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