diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2020-03-15 15:57:14 +0100 |
---|---|---|
committer | marex <marex@desktop.lan> | 2020-05-01 12:35:21 +0200 |
commit | 9741795408d2fb907256899cd9403dd57b917358 (patch) | |
tree | 28cef670332ed29a8ec5e893c26f727cbcd8f44b /drivers/block | |
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>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions