Received: by 10.213.65.68 with SMTP id h4csp2115216imn; Sun, 8 Apr 2018 20:05:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Vh27Q8HF7Zws6fhfm8VA63Pl1lvVIE14poytb2yT5oiIhWnF1bgto9KMySb8C2Z2726Jj X-Received: by 2002:a17:902:24c7:: with SMTP id l7-v6mr36557372plg.320.1523243146151; Sun, 08 Apr 2018 20:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243146; cv=none; d=google.com; s=arc-20160816; b=kwaWjo05H5nckX7JtrZ5aSrAdnZ4UE5TvtbmLg8AVyBMx3l7QwMLdIh09QMLCYl5HI xh4hUxXLSfzbwF46saqYYHKRDOBmbuBfCCe+5Obnj2YoLIqM3rPrRv8VesFs3o9ZHfvf QjCGgbwoOUGfevSH+S6+BWU/L3b8+xa4tMGCl0zyBKCGMBmEiP/OmY6KTU6H7wbSXfgT o6YlIBIcnlxnt+6zWcqIzfS9cfoUnTs90qHShbL8zZrmBSK4Yw+nhoHjnSlqJLAFE25p Hu/keLjPr+vuX/8Qey7IOOEX2VO3MFwk92Iz0LeaynX7I8SBOT0Aagf63Im/ra7dk2vE S19w== 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=R6HgIuEi2y6S6u+gB328zdMdO/ktE//5DprpT92GMNw=; b=NbHDvpFBhC/30OS6OStoqn7OKsgjfLvXAw2ph/4yow43y9TYgknJv3pcqZeGd3bBzc jy2mBIY0VMBIzHQbyYMG/3hdUTWElZ0BTbqAVXfdvsRqRVNiBC5hh8l5QKvK41JxXLld QSaZnG0MJkzRAYgppq1+SJZ1zkZ88XPu/cUst5iFUyUvy4pSE+OzEFZyINDHwZ1De78u gFNoJJS9y7FBJdtUGKcOo2l5UqTd3ihH7KliqDoJXVsyP75enVXYt4odeoO1kmwUkPop P4PqI57ZSdGkClSPF/MdAL7DV353Ji61GarLaQbil69yqscMpSTIEaRXi0mHXOKGFB/R fzHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=C3TtCRbi; 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 t2si1757241pgr.117.2018.04.08.20.05.09; Sun, 08 Apr 2018 20:05:46 -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=C3TtCRbi; 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 S1755588AbeDIA13 (ORCPT + 99 others); Sun, 8 Apr 2018 20:27:29 -0400 Received: from mail-cys01nam02on0094.outbound.protection.outlook.com ([104.47.37.94]:22752 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755453AbeDIA1W (ORCPT ); Sun, 8 Apr 2018 20:27:22 -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=R6HgIuEi2y6S6u+gB328zdMdO/ktE//5DprpT92GMNw=; b=C3TtCRbifCaVCK4erRN08inU4M0f3pXsyb7mU66qHnQ4eWPMZ7KJ0aHK6hLmk17snrnt2ZGnuDgn+XW41MIUsqnP4Z+x4CWtLn09IuAft6yXa8pnJ/zv0Mo2YCd7Uf0C764d4Fnlv1hoyTI2sdn3Gt/lxm+GtnCT4cyF70mJNOw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1031.namprd21.prod.outlook.com (52.132.128.12) 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:27:19 +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:27:19 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Netanel Belgazal , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 034/293] net: ena: add missing return when ena_com_get_io_handlers() fails Thread-Topic: [PATCH AUTOSEL for 4.9 034/293] net: ena: add missing return when ena_com_get_io_handlers() fails Thread-Index: AQHTz5j0VcT8jaJvKEK0CXF79H1UuA== Date: Mon, 9 Apr 2018 00:23:16 +0000 Message-ID: <20180409002239.163177-34-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;DM5PR2101MB1031;7:7iopGlXYz0P71tiktZkF3bjoP1AGrQAN494x4+vZLIyMyPiMYlGZTMwnD+K1W58HkrxZlsQilI7mD1AmhoRKqCujKhl5nZazA7Q/uI00QT1kJj7/mBBME8s0hCigCeuMrTNpbjVPjBjioZ3bdJKd8mw6QdMHv8/9Y+3FOXDmIWT0Z5mjO09uKDRl/zlxeLQW731e5tb1H3S1FVsHvkAepRPQHcMp2IhdxycfofsT+tv3woFc1SDjnyFll2p3vl+p;20:DKJAL4hlNXUeOR4ckDxN6ma4+ZKeM541XlksOPpY2Wr3cdS7UJBZojxtTIDplrtIJVhIGunXewDpz3VRT3JBOyrPSuGJGXze9jMkDUcQbqlUwVkwda4RZW8NjbFLQ2c+7OyQmdawpRSXSliVyAfeM9GFfImhF2VT8d9AfsW6h40= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 0e116fb1-93ef-41f4-228d-08d59db0a7bf x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1031; x-ms-traffictypediagnostic: DM5PR2101MB1031: 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)(33061846794335)(47284530071512); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1031;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1031; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(376002)(366004)(39380400002)(346002)(39860400002)(189003)(199004)(2900100001)(10290500003)(99286004)(76176011)(14454004)(7736002)(11346002)(26005)(6666003)(86612001)(72206003)(478600001)(36756003)(106356001)(66066001)(2616005)(186003)(22452003)(86362001)(68736007)(305945005)(54906003)(102836004)(486006)(59450400001)(110136005)(316002)(6506007)(446003)(107886003)(53936002)(4326008)(105586002)(6436002)(6486002)(476003)(6512007)(5660300001)(5250100002)(25786009)(3846002)(6116002)(1076002)(97736004)(3280700002)(2501003)(2906002)(81156014)(8676002)(10090500001)(81166006)(8936002)(3660700001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1031;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: w0PPRlmvSsM6SZUYNftnlXhiBrGp6hxnODF6cQSAsT/1ftlvAn/Gg/xHDa0UUFZhy9s8tVUWcbnLs24sscI0snDgyfboSAFeCeCk0dTX0UjW2bKAtRyUdhAsqmT91+Pqg40XxcN1nDWMZRKpjK9U56LbbTjN9klKwB7/kqVE5T+vSAbbs7bOe9NGwYRpeVUhrIyoNPGxhOtV46Qbf/J1pjpJqxCpeUU+oX63zHuE5wVtmb9wxYiEJ/i6X5E0DBvT/N8EGYZry8DH9kuYnd4siye+30F/t9EVc1rjBaUszYD289/OU0jbULc9WKb5EdfRFCwUV87b7okqt/jYPmnjB3W/LVcBlcbofm/vY0LH2AiIxlzEfJROgoC7apew4EtwpAV4fbu8Hve2HcYD6weLKScpXLHjRzws6CszmOI8fd4= 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: 0e116fb1-93ef-41f4-228d-08d59db0a7bf X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:23:16.7842 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1031 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Netanel Belgazal [ Upstream commit 2d2c600a917127f16f179d5a88fc44ba3ed263ed ] Fixes: 1738cd3ed342 ("Add a driver for Amazon Elastic Network Adapters (ENA= )") Signed-off-by: Netanel Belgazal Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/eth= ernet/amazon/ena/ena_netdev.c index bfeaec5bd7b9..fe691017d5aa 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -1542,6 +1542,7 @@ static int ena_create_io_tx_queue(struct ena_adapter = *adapter, int qid) "Failed to get TX queue handlers. TX queue num %d rc: %d\n", qid, rc); ena_com_destroy_io_queue(ena_dev, ena_qid); + return rc; } =20 ena_com_update_numa_node(tx_ring->ena_com_io_cq, ctx.numa_node); @@ -1606,6 +1607,7 @@ static int ena_create_io_rx_queue(struct ena_adapter = *adapter, int qid) "Failed to get RX queue handlers. RX queue num %d rc: %d\n", qid, rc); ena_com_destroy_io_queue(ena_dev, ena_qid); + return rc; } =20 ena_com_update_numa_node(rx_ring->ena_com_io_cq, ctx.numa_node); --=20 2.15.1