[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180108.143046.2103730003500033321.davem@davemloft.net>
Date: Mon, 08 Jan 2018 14:30:46 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: christophe.jaillet@...adoo.fr
Cc: andrew@...n.ch, f.fainelli@...il.com,
maxime.ripard@...e-electrons.com, wens@...e.org,
netdev@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] mdio-sun4i: Fix a memory leak
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
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 <christophe.jaillet@...adoo.fr>
Applied, thank you.
Powered by blists - more mailing lists