From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] mdio-sun4i: Fix a memory leak Date: Mon, 08 Jan 2018 14:30:46 -0500 (EST) Message-ID: <20180108.143046.2103730003500033321.davem@davemloft.net> References: <20180106080009.5325-1-christophe.jaillet@wanadoo.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: andrew@lunn.ch, f.fainelli@gmail.com, maxime.ripard@free-electrons.com, wens@csie.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: christophe.jaillet@wanadoo.fr Return-path: In-Reply-To: <20180106080009.5325-1-christophe.jaillet@wanadoo.fr> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Christophe JAILLET Date: Sat, 6 Jan 2018 09:00:09 +0100 > If the probing of the regulator is deferred, the memory allocated by > 'mdiobus_alloc_size()' will be leaking. > It should be freed before the next call to 'sun4i_mdio_probe()' which will > reallocate it. > > Fixes: 4bdcb1dd9feb ("net: Add MDIO bus driver for the Allwinner EMAC") > Signed-off-by: Christophe JAILLET Applied, thank you.