summaryrefslogtreecommitdiff
path: root/include/sound/soc-dapm.h
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-12-02 08:18:33 +0300
committerDavid S. Miller <davem@davemloft.net>2022-12-05 14:00:25 +0300
commit165df24186ecea95705505627df3dacf5e7ff6bf (patch)
tree3d73d27ba5971040d2d7712e72f1ce2faed99b4a /include/sound/soc-dapm.h
parent25f427ac7b8d89b0259f86c0c6407b329df742b2 (diff)
downloadlinux-165df24186ecea95705505627df3dacf5e7ff6bf.tar.xz
net: mdiobus: fix double put fwnode in the error path
If phy_device_register() or fwnode_mdiobus_phy_device_register() fail, phy_device_free() is called, the device refcount is decreased to 0, then fwnode_handle_put() will be called in phy_device_release(), but in the error path, fwnode_handle_put() has already been called, so set fwnode to NULL after fwnode_handle_put() in the error path to avoid double put. Fixes: cdde1560118f ("net: mdiobus: fix unbalanced node reference count") Reported-by: Zeng Heng <zengheng4@huawei.com> Tested-by: Zeng Heng <zengheng4@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Zeng Heng <zengheng4@huawei.com> Tested-by: Zeng Heng <zengheng4@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/sound/soc-dapm.h')
0 files changed, 0 insertions, 0 deletions