Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp71212ybk; Fri, 8 May 2020 18:59:47 -0700 (PDT) X-Google-Smtp-Source: APiQypKDUS8Hi9hV4l7mT0tUIdzPthOcHJ7O6jxMYWnfvdW6p+EUpaxpgv01aWNwKkSiSvqK+lUK X-Received: by 2002:a17:906:ad9a:: with SMTP id la26mr4362119ejb.128.1588989587036; Fri, 08 May 2020 18:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588989587; cv=none; d=google.com; s=arc-20160816; b=JNhkG467UNJNbIFgvX2E8Si0DVZqVsI3p2lei/GFC3X27nCJI5O3j3HJ76eIElE/cA 3DxxRqxD5eLOmwsCCZSf0Gp+OR8WyK5G9J/lWy5yQi2RXzkJQD8PpGwLWEjO9hpfi86j CiR34IZDVJWdnbs/IIU73QA9RR0itbqAh+/5ChcUr6DhENJ/QbYlnXEUuMHdDaVHSKQg dji4NWXe6QahbiPo658gSftAc69U7OGqUH8Ku98hZWmiqwHsJZN02bRLm4LrytONMx3m WDlE+9H3UbjF1yiZmuPcktsWW0lBoa3FFGTR2zZ8W7NarCmeamuEsAhotp7b3XNBZgNh +fKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=oSjgAs+VbYHOrEEYT6w2R5u6QWtEyuqxqrhck4HBFY8=; b=CiyF1W2WjiHCNWgMzhEh08TmRSOqUujnthOaDxzmpJi7Rvo4Lr9LblorVy6L/wWgRv fIG+Wd/Avgl79FgM6YXglmZv1q9Oy/ZZevzqjrhYqUbM4dIkG/x84lqo21wR/kpqkBVJ D88TRWro2UnK0OhG1MeCqlgQqqF9RcV+vTHSMXq/lLR8MJs6FNiMocb6gd7QsXsxiQCb IbjBKjaXggTDDKtxZzQGk+u9JvxW4XH4tpurDLh2sTaNcAYSZ0wThXscRobzJ4VUSzoO roBAmU0+owVW+WvI/kwvqso9pLuSyvag2Javi5viMueTB99fUYZWagsfj+5NrscwcyBJ WR9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j24si1934637ejb.58.2020.05.08.18.59.24; Fri, 08 May 2020 18:59:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728593AbgEIB5n (ORCPT + 99 others); Fri, 8 May 2020 21:57:43 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:34878 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbgEIB5n (ORCPT ); Fri, 8 May 2020 21:57:43 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 10A1129922; Fri, 8 May 2020 21:57:38 -0400 (EDT) Date: Sat, 9 May 2020 11:57:44 +1000 (AEST) From: Finn Thain To: Jakub Kicinski 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 In-Reply-To: <20200508175701.4eee970d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Message-ID: 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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).