Received: by 10.192.165.156 with SMTP id m28csp1085503imm; Wed, 11 Apr 2018 12:08:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ZECSVZ3xHkMUj/hyBY0UoU4+MOyvZjhyhDDP73hmCIj5tEbHzyC+/MmtR++NRha5DZ4bx X-Received: by 2002:a17:902:748c:: with SMTP id h12-v6mr6425941pll.264.1523473684866; Wed, 11 Apr 2018 12:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523473684; cv=none; d=google.com; s=arc-20160816; b=0/giFB01KOwjCw4EYAn17P/WD5Ru9ZuTGKbooxnfEhK0jhLqaczuzp1Zd2QmNx952s A75yiardhu+p+hFLCpDyPBk6dEpvbyFfnrYtO3SWS2FDPxFNPWiBuLy0BFHmQzLff/eK EstwbOryf3jO2HxdLoMPCWQ6U1CObR/rhlcFLNpqDrCcBAjmBB/fqX3EnWjJ7KluClTn 0pQ/lIcmYV4yr3yKunHeyghr5vSm8tyWRgTlE2vD6B+66UWqfvHmHRfN4go4fLFEzipB kZ7WrzMs9Y4KzP++TxiY/IpPoTKlZZN+ucrWWRtuJ5EaxRA2zEk1JFBtEVpwxyZZj198 UAjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=SLkGbyxM9uQ7K4nZeouZvSRBH4BgeVPIzxbq4e7B74M=; b=cwXGtJJmPXnlvLQ19Yw2MxWKAqVU8YAqih6B3QDjg7TSMjsoS2jfb/e4bUjWakbJPI zIe3z6uBFTCy6CiD6gyfrOXag8oJGI0/xkIUYh5UZfg4BDLi6BYsz4cNgph+kfalAHm8 9t2nWP6uSoJIHn1rtj/kxiEsogq3OG8RrJlXaNcXs0pvjWCw9J72q/emX5tGvIvbp0/3 wpV2MX0+ZmIXjwz+WjacIz1+50od0L9SkxaRmuHoM1GikK/ZjYxRDgBYjsd2Rvn/VK0p Uydc6x8u0gciMzfxdM/rUvcsguuwOX9iC7CMP8NKWaacVcMwMAhOsoyhR3IVVuxeeBrN Krvg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t137si1108663pgb.288.2018.04.11.12.07.28; Wed, 11 Apr 2018 12:08:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934762AbeDKTDv (ORCPT + 99 others); Wed, 11 Apr 2018 15:03:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39074 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934716AbeDKTDs (ORCPT ); Wed, 11 Apr 2018 15:03:48 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 89B4AE58; Wed, 11 Apr 2018 19:03:47 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Netanel Belgazal , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 243/310] net: ena: add missing return when ena_com_get_io_handlers() fails Date: Wed, 11 Apr 2018 20:36:22 +0200 Message-Id: <20180411183632.928093211@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 ++ 1 file changed, 2 insertions(+) --- 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 "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; } 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 "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; } ena_com_update_numa_node(rx_ring->ena_com_io_cq, ctx.numa_node);