commit | 9741795408d2fb907256899cd9403dd57b917358 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@gmail.com> | Sun Mar 15 15:57:14 2020 +0100 |
committer | marex <marex@desktop.lan> | Fri May 01 12:35:21 2020 +0200 |
tree | 28cef670332ed29a8ec5e893c26f727cbcd8f44b | |
parent | 6f6cf0083f466c49c97c175b0169a0cd31c35d63 [diff] |
net: smc911x: Fix potential memleak() in init fail path 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@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>