Received: by 10.213.65.68 with SMTP id h4csp1852786imn; Mon, 19 Mar 2018 15:15:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELsIyiitH5HiB1SFvzYrWd60CGeujYPah6sLpwNxgKcefdiDkIhZOVSuqh8q1aENHAPagU5j X-Received: by 10.99.184.1 with SMTP id p1mr7680305pge.96.1521497736772; Mon, 19 Mar 2018 15:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521497736; cv=none; d=google.com; s=arc-20160816; b=1Fkv29iU2GjkmpwORJDetpZPKrPgcd3V83FPW2ZlwLCo7qIMmrLXzLvI+83bOnruF/ kZF0mmer0GvEhgEz4MO3evSKLJHKVOnV8tkyTgJPcInaakBjdhJWCtDUMHMSorHUM9AN AwBMUU/c413OdR3b2EH/Hu0T+w+FdaXO+m/fzBA9TDKfxIdGq+C6t7A1rtq9LeuoDTKC IylXj0ebKzsqv8REdtZnShgl1GO8Va/8r3IhTAlirWgDkA+LfhgPsgQkzqyLKQ5BV4bY ciXBX7J/kIYxuHqOYmt7ldni8zfyBgUHFZMyfn8sqWA9PN/QNI1A1bZf1kgqUtxxFxMY c3Rw== 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=snZz6ZJ1ASBFpyZdPE7Sv/A/B1LDx6fBF7HDyIxof40=; b=y9ix470Wu15K16Zwv3CZmAY84v9vZ/o1mAtq8QdHdg3JGDJiUpV+/eaF8+/LSpK5tk 5vQeVmFMXMCNNh0usOs6GXW0eqwjzHlG9Udbp6HESmtBCj7/IBmDLApRwNV4ArA1TH/O dQQiT5ZQshaetxT+HFr7CCgIT9Oa4fBtYgPnvVMVGh5VABE6kglZIZFN58yXrK5IOaGf XudHOvNUi7il5mpWczOADDR6qUzrXjql04gB6hD3VPQgNyNi5tKgm8OYpEHhGa5mCD+K nzYO1PLCZ+nPH8NOEbZWmCrE4KXLka/1XvEHDSwOODyn2cM8yqWxyar+iBllBR1u3Gml Se+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=bXPasWNS; 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 189si144076pge.444.2018.03.19.15.15.22; Mon, 19 Mar 2018 15:15:36 -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=bXPasWNS; 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 S934288AbeCSPyi (ORCPT + 99 others); Mon, 19 Mar 2018 11:54:38 -0400 Received: from mail-by2nam01on0114.outbound.protection.outlook.com ([104.47.34.114]:57771 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934043AbeCSPuG (ORCPT ); Mon, 19 Mar 2018 11:50:06 -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=snZz6ZJ1ASBFpyZdPE7Sv/A/B1LDx6fBF7HDyIxof40=; b=bXPasWNSI0OhSEbq3ImRdOmwVoPFmHIGNeSXZ6KPUm1+C/rQXfMRbhCHoVSKUhW5W5ExLFCoipHQXoUBooKdFsWXanA9tj15lYY3aaXB/2MUCJ6TowvX9URKuFd8ILEmkphvZ+nRNELuOMre+fspiC5QBNgZ51208RZe/GC0QGQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1109.namprd21.prod.outlook.com (52.132.130.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:49:46 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:49:46 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Wei Yongjun , Linus Walleij , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 109/124] gpio: thunderx: fix error return code in thunderx_gpio_probe() Thread-Topic: [PATCH AUTOSEL for 4.15 109/124] gpio: thunderx: fix error return code in thunderx_gpio_probe() Thread-Index: AQHTv5nNdCE9hYZPNESoh0qMb8cBmg== Date: Mon, 19 Mar 2018 15:49:02 +0000 Message-ID: <20180319154645.11350-109-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-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;DM5PR2101MB1109;7:aX1jrjNUaqNWLdsB5/VWFTOqcuW2tJ8b1S2wdGTNKwLTuvZpO70RxbizQVAwklUYOjYLf5hHMXURV6kQ+bcrJRYG+LUmrkRXJesYUC/hysaIXi20EnmgDMiBl/N8utk5aBK1iMvRkSFPJ+FN6sLEaIyC9EHPmiZ6vB9ClXhIqYonqAZ5ZsgoYYXHD/LyRtPetnm+tMid88RUdFnYKJRUaX7/O7Cg2lQL74vz25+YYwGXLtLDYqYfs5zy2wCdopc0;20:tRd1qCcMA+pztLumaRmLiJBPcJnXgJUt9dMMn0wQRVls9+vffRxGJbWvKb9dMJjEw8vnLZkpdRbMG8xwNZtdahnUlsjloyt5cLo1z1wEF9NFRCIM4YP9vOJRbXPHjOlpwBkBDYW9ZyBSoTEg2lCCAC2HaNijDl4sb5bxe3m/fhU= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 82b1a518-730e-4483-01c5-08d58db10a79 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1109; x-ms-traffictypediagnostic: DM5PR2101MB1109: 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)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1109;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1109; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39860400002)(39380400002)(376002)(346002)(199004)(189003)(81166006)(10290500003)(107886003)(81156014)(106356001)(6506007)(8676002)(3846002)(36756003)(8936002)(97736004)(6116002)(1076002)(102836004)(68736007)(6666003)(3280700002)(2950100002)(3660700001)(478600001)(72206003)(59450400001)(2906002)(14454004)(76176011)(66066001)(6512007)(5250100002)(10090500001)(2501003)(53936002)(6486002)(6436002)(26005)(316002)(22452003)(305945005)(7736002)(4326008)(25786009)(86362001)(86612001)(5660300001)(2900100001)(99286004)(54906003)(186003)(105586002)(110136005)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1109;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: rfGUgvBUXzQ/uUdP1r/BeJKzrDoLwhUHZr+MENAXMw1dImMKalGQX5oFjDbkTjpuOvE/oYj7vIDGa/vRCg+sDIPUb6QiUHAcnPxuMpbPWYmTkD2a6ReuPFEUkrkPov+tZLI+5b95ujD3KdEgXtVg3aTARFv6Qt06C3h7ByjN7+lMcAb5bojXGnmdMQOB727nKfXF9crBdh0oB9yX6TDR1nDCdoaKeguVvTCAImL2Eg9C5SHJVgsQaiL22pBGseK4g+D5KaBY7MkqQi6pOvR+BWx2iAoCyHhHfZFrsLj+QG6amj2kqAERuG5MiuurqyR4cJudBx42pxh4KvLq61ij5g== 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: 82b1a518-730e-4483-01c5-08d58db10a79 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:49:02.2512 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1109 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Yongjun [ Upstream commit 76e28f5ffed82b1e81a86c4eb8d0420515765620 ] Fix to return error code -ENOMEM from the error handling case instead of 0, as done elsewhere in this function. Fixes: 5a2a30024d8c ("gpio: Add gpio driver support for ThunderX and OCTEON= -TX") Signed-off-by: Wei Yongjun Acked-by: David Daney Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/gpio/gpio-thunderx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-thunderx.c b/drivers/gpio/gpio-thunderx.c index b5adb79a631a..d16e9d4a129b 100644 --- a/drivers/gpio/gpio-thunderx.c +++ b/drivers/gpio/gpio-thunderx.c @@ -553,8 +553,10 @@ static int thunderx_gpio_probe(struct pci_dev *pdev, txgpio->irqd =3D irq_domain_create_hierarchy(irq_get_irq_data(txgpio->msi= x_entries[0].vector)->domain, 0, 0, of_node_to_fwnode(dev->of_node), &thunderx_gpio_irqd_ops, txgpio); - if (!txgpio->irqd) + if (!txgpio->irqd) { + err =3D -ENOMEM; goto out; + } =20 /* Push on irq_data and the domain for each line. */ for (i =3D 0; i < ngpio; i++) { --=20 2.14.1