Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp75587ybk; Fri, 8 May 2020 19:08:32 -0700 (PDT) X-Google-Smtp-Source: APiQypIPGqqCArk3BU3rOX9J9IofbMnyZxaVrm01IwFiD3/Uk4zqL4jarNEBMtjr8g3EmvVQBf5O X-Received: by 2002:a17:906:809:: with SMTP id e9mr4250417ejd.81.1588990112806; Fri, 08 May 2020 19:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588990112; cv=none; d=google.com; s=arc-20160816; b=OYj5//RWzY2kASp5CaYol6xq5goLFdJHFWOyqm5Si2mWOjyn1g4naslguhPAYMKbdd 59kLBOXEmnYRTkfwsWoAKoeDGavLru7GaZdhWGxwMiq3z3aQehSu6evA0s8m+/Ak6dwW SKMiS3sq0URQoN1GV+bmYhZ/dubWBOAA3cO9Xd2yEKgdRRCz1ccjUkE/iGdVCS9Io52I FwTT8K5gKOC/vS7hn/QnF5lRpQ8cmkkssL+5YN56pkhOwCD7K3LRk5vHp47OY5EsMNdy aRYEnxwDr0x/7d5ClQ4lLUxKDF+FnktXFDesCrWaj7h21zs4RPrAcCn9/Wy6SksMZxTe jpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Y/3G5hA8sfq+GgTdOJ08bZgF7GZJYaQdcMCciQtWbss=; b=V9zJw17/FECav9o6vp7BmZ4H/EtZKAeXQlKey6iFqDV68lGEXaLFqXPrp7plf/MUQ/ qa6x3pFT7c85ZVZ87O2k2r0lY3p17PuMndc92wJTAFC84tbSjnqbB/PxPeCW0WMd7ILr j/A0R1xd47E323a+gPk3YSAjAZjH7VA2iymhS97KOh/MM3xxkGGGpW/wKNQzGc88gNTd js+/QGTPPND1m97SN0ix9nba6FxBmZJxyavDp7DQu/oMRI/BVDTPktovPnsDwCmXfz9g 6n5yftwdX/WBbh/DgO2hN5Q75Htd1N734qaPcZKdrI9GYzN40++lgaE8/nWguNGA+xYh Wagg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RcyysLvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j21si2028194ejv.161.2020.05.08.19.08.09; Fri, 08 May 2020 19:08:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RcyysLvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728595AbgEICEE (ORCPT + 99 others); Fri, 8 May 2020 22:04:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:59228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbgEICEE (ORCPT ); Fri, 8 May 2020 22:04:04 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 00BC3218AC; Sat, 9 May 2020 02:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588989844; bh=lW4Von6DNZWwTFaN/A6L+lg+zzWvz95nYwHXT4Yr9Qc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RcyysLvHtEZmwWe/PEMeFE5nx4el5G39hmmioqZ3Cpx97HXCushV+5mGooROYyDEc nc1Z+Cyy9RP0vXW0wKM07F8Fv0o6CFHUg6+c0CQsHjvHW5Hz8Dc27deRmgnOpyibgO Q/wGuz2m4C7ycXOB2C9RCM5oVNQVkR7USv+Xg/hE= Date: Fri, 8 May 2020 19:04:02 -0700 From: Jakub Kicinski To: Finn Thain Cc: Christophe JAILLET , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] net/sonic: Fix some resource leaks in error handling paths Message-ID: <20200508190402.76018e90@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20200508172557.218132-1-christophe.jaillet@wanadoo.fr> <20200508175701.4eee970d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 9 May 2020 11:57:44 +1000 (AEST) Finn Thain wrote: > On Fri, 8 May 2020, Jakub Kicinski wrote: > > On Fri, 8 May 2020 19:25:57 +0200 Christophe JAILLET wrote: > > > Only macsonic has been compile tested. I don't have the needed setup to > > > compile xtsonic > > > > Well, we gotta do that before we apply the patch :S > > > > I've compiled xtsonic.c with this patch. > > > Does the driver actually depend on some platform stuff, > > xtsonic.c looks portable enough but it has some asm includes that I > haven't looked at. It is really a question for the arch maintainers. I see. > > or can we do this: > > > > diff --git a/drivers/net/ethernet/natsemi/Kconfig b/drivers/net/ethernet/natsemi/Kconfig > > @@ -58,7 +58,7 @@ config NS83820 > > > > config XTENSA_XT2000_SONIC > > tristate "Xtensa XT2000 onboard SONIC Ethernet support" > > - depends on XTENSA_PLATFORM_XT2000 > > + depends on XTENSA_PLATFORM_XT2000 || COMPILE_TEST > > ---help--- > > This is the driver for the onboard card of the Xtensa XT2000 board. > > > > ? > > > > That's effectively what I did to compile test xtsonic.c (I removed the > line to get the same effect). Thank you, that should do!