Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp41719ybk; Fri, 8 May 2020 17:58:58 -0700 (PDT) X-Google-Smtp-Source: APiQypKIgH1AAHfmJghtAzH3Ud5+O29Am08a6WAS3SLTOUf9OJgXY8Nm0PvCcOpNs1DVLvNIaqnJ X-Received: by 2002:a17:906:31da:: with SMTP id f26mr1495151ejf.308.1588985937994; Fri, 08 May 2020 17:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588985937; cv=none; d=google.com; s=arc-20160816; b=s450KxKVEFInt3R7irVby6EmS+cVhaCdU4cnrmcF24GN2NxYcTCui0+RBAVKMh8vXi uSSlk/iAsVoice4g+FvKmF+MZSGxY41b9Z/md/KmZbAq02qnoKBuO0IK81R8TBfadeNP cfqqn+/fBqGS1fWNrzhQU1RyDLtgdxxVMzBqepqnxgpH24f+9sjb8J21oedH09LbcUZQ j6Tj/VdHW4B6bBQuWCfWeT8Vl2CjZhB48D4JxGr5tmTJ2HPamb+fylKqClEvIJlBeXar QA3sR8XL7H7KB93nPm8pYMMsL/JTOZplA1MrFzAGxcLMnhGOW25uP2mD/u/kdXiaos7S /EFw== 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=/hV5LSgbzldbkC/412OVGhyH5fxJMYWyy9ScrcBTfCI=; b=jafwX2U5yp70z+dieDNbnSb45LYDNsKJUTMTkxT1ev9NYqKCehU+f9VqcAwcqx2G66 /gZJewt9gergj1cQX7Jm5CGuc3OhFt/kHWMdjfhuFGloUSHX1/AsHpE+4Z6mruDh6ExG JYL9B/84QTMzmRQio8DOHLiwcI2vggK72cbo/CuTmJJ23gmWV47ryv3Y8nucNFBP1N9X SMY/0K8ifr0Q9Wlqm2DlieLIY6EiBmQCugpHWQhEU3f9bVLHuewnA4aqDkW9kIUwvpYF nj5wWtBQi2oRxcYGXnA3p9YF9im1o//BMo4fKrjMyeaCenNbTlG5+72bDwrVhFHI72EW Mmbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ko9Oe0HO; 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 d24si1959074ejc.345.2020.05.08.17.58.33; Fri, 08 May 2020 17:58:57 -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=Ko9Oe0HO; 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 S1728479AbgEIA5D (ORCPT + 99 others); Fri, 8 May 2020 20:57:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:42100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbgEIA5D (ORCPT ); Fri, 8 May 2020 20:57:03 -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 BAAFB216FD; Sat, 9 May 2020 00:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588985823; bh=4yUVtrpxoQBIJBTheEsMFv5lta2YpekhvrR7qBnK398=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ko9Oe0HO0up7Glh3WC/NxoguOR31RW5qkjDhgnToBwtnBNdRv31Q9uJ+9xosFNedZ D4zoiR6/1Lt6deZevPX6A/903dGfcn0h3OleUbPuQHugTHeDacN2gxAHASVGXcNZZ/ KQNA8eYcWRYzQGTmxHDTHFZqcDSti+dskRHuKTW8= Date: Fri, 8 May 2020 17:57:01 -0700 From: Jakub Kicinski To: Christophe JAILLET Cc: davem@davemloft.net, fthain@telegraphics.com.au, 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: <20200508175701.4eee970d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200508172557.218132-1-christophe.jaillet@wanadoo.fr> References: <20200508172557.218132-1-christophe.jaillet@wanadoo.fr> 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 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 Does the driver actually depend on some platform stuff, 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. ?