Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2351199ybl; Sun, 26 Jan 2020 00:21:00 -0800 (PST) X-Google-Smtp-Source: APXvYqw8mT7kxTSAhI13S4o3+eJXY5Qmr7bn53zRQX03CnuA0jgz1pvEm0hALUQkpkd0tDBW5i04 X-Received: by 2002:a9d:518b:: with SMTP id y11mr8186826otg.349.1580026860401; Sun, 26 Jan 2020 00:21:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580026860; cv=none; d=google.com; s=arc-20160816; b=gQBceBVhs9U0CyheoEHTW5XHo0qfaMBkbTIw1RDVaVT8JKrpMzEF3s6nLPLVoRMuLH z3PtAQbjknMLjNLZvU884wA2xCIqVOeXrtfngBoAzHsvRG3Pd2wIBLMk05me3FwPHORp iabDBgkObOOEDHz2IMtKL35EtUEr/XiEVoVc4SSR+lm55itBrGTMh486tIUiANIrrXEz D7bN3Ofdo9d1IuooFd8SUYb9Iq1R7dX5EpAo7g5MAsg1h49lzFBpNJ/9p5aTxKCWkkKE iy68ovl+X5Eu1wXFb2J46Zm9ouD9q9YZCqngyxrz4Gns8D+yKgiVbF3SRShGamamnb1h Kisg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OwfykHST6emhj2qWXbkJDIvppm6lZI4tYBHZDFu02j4=; b=y1E3Yo4aGUsbrtDx0BMrXbUy+gaDYPQB5sbhLklEqJtcKQurLx7YXakWr1aqXREbTN b2PsJtMdbkE+jE1u1X4nKeaSusXx0jHfpw3MEiukcW2/XlUQiU0pgHQ6en5fCGaeSARv RFhQmBwgRJnNkfCC7g0vB6Mjlo8Tt6jzMnpanLMRHojFsD5Gwkaa03kaUzzTQiX9UrOJ JgRluvD7Y6HfdLTIhaGbcNxWg04PEHvjl2rjl5ZPi3ZQfVxXp35L43U4U18POx0jzFjg hOXm7xqlbY+fcK2MFK4QI7iTj/uBDrOWXgxJkhzUJR9XYS98kb9EM7+jfhndlyUrQfH+ Xq4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=vY8KB5IY; 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 a7si511476otp.11.2020.01.26.00.20.46; Sun, 26 Jan 2020 00:21:00 -0800 (PST) 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=@messagingengine.com header.s=fm1 header.b=vY8KB5IY; 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 S1729174AbgAZITp (ORCPT + 99 others); Sun, 26 Jan 2020 03:19:45 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48247 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbgAZITp (ORCPT ); Sun, 26 Jan 2020 03:19:45 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D9E0E21EC3; Sun, 26 Jan 2020 03:19:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 26 Jan 2020 03:19:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=OwfykH ST6emhj2qWXbkJDIvppm6lZI4tYBHZDFu02j4=; b=vY8KB5IY8uC3RgCweCMkct Ts7HKVZonwawtRHzi7wVju60LoK3uPkvMx+h4GR9XARhiQX6+loHiOGlIv3Lpbqv eP4Lz0KIxnekEMxlgCtmdWLbIQLNJM6PFY1bg6VO3BwJhL4kxb2InqhzgByY7BnA 3RuhQZ86tzsYhgBgxXAMCkaC/gbxRBa5f+x55axdUGZRgYNtvK7tVtAqJyErJnON 90ZLLxJjv3caQflx4eqfI6C3Ne7YLzC4vuqMbOGONuYQktE6i4L5GJJHvvH6ne7s RmXlfb8Z5VscKzuaOSBFYyBP9809ZVXJFqLdLcbhuAjAviU/HTj4S1n1cJMtxtpQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrvdelgddvgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcuufgt hhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecukfhppeduleefrd egjedrudeihedrvdehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: from localhost (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 3B81430673CF; Sun, 26 Jan 2020 03:19:43 -0500 (EST) Date: Sun, 26 Jan 2020 10:19:41 +0200 From: Ido Schimmel To: Christophe JAILLET Cc: jiri@mellanox.com, idosch@mellanox.com, davem@davemloft.net, vadimp@mellanox.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] mlxsw: minimal: Fix an error handling path in 'mlxsw_m_port_create()' Message-ID: <20200126081941.GA794072@splinter> References: <20200125211847.12755-1-christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200125211847.12755-1-christophe.jaillet@wanadoo.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 25, 2020 at 10:18:47PM +0100, Christophe JAILLET wrote: > An 'alloc_etherdev()' called is not ballanced by a corresponding > 'free_netdev()' call in one error handling path. > > Slighly reorder the error handling code to catch the missed case. > > Fixes: c100e47caa8e ("mlxsw: minimal: Add ethtool support") > Signed-off-by: Christophe JAILLET For net: Reviewed-by: Ido Schimmel Thanks!