aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-10-19 14:41:04 +0800
committerJakub Kicinski <[email protected]>2022-10-20 21:08:41 -0700
commit94423589689124e8cd145b38a1034be7f25835b2 (patch)
tree148c85709df2e9a986384590c826d006eb4d0ac1 /lib/mpi/mpi-sub-ui.c
parent82cb4e4612c633a9ce320e1773114875604a3cce (diff)
net: netsec: fix error handling in netsec_register_mdio()
If phy_device_register() fails, phy_device_free() need be called to put refcount, so memory of phy device and device name can be freed in callback function. If get_phy_device() fails, mdiobus_unregister() need be called, or it will cause warning in mdiobus_free() and kobject is leaked. Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions