[PATCH 05/12] net: smc911x: Fix potential memleak() in init fail path

Joe Hershberger joe.hershberger at ni.com
Tue Mar 17 01:03:35 CET 2020

On Sun, Mar 15, 2020 at 11:59 AM Marek Vasut <marek.vasut at gmail.com> wrote:
> Fix memleak in the init fail path, where if allocation or registration
> of MDIO bus fails, then ethernet interface is not unregistered and the
> private data are not freed, yet the probe function reports a failure.
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Masahiro Yamada <yamada.masahiro at socionext.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>

More information about the U-Boot mailing list