diff options
| author | Marek Vasut <[email protected]> | 2020-03-15 15:57:14 +0100 |
|---|---|---|
| committer | marex <[email protected]> | 2020-05-01 12:35:21 +0200 |
| commit | 9741795408d2fb907256899cd9403dd57b917358 (patch) | |
| tree | 28cef670332ed29a8ec5e893c26f727cbcd8f44b /scripts/checkpatch.pl | |
| 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 <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
