phy: phy-mtk-tphy: Fix some resource leaks in mtk_phy_init()
stable inclusion from stable-5.10.46 commit 9a17907946232d01aa2ec109da5f93b8d31dd425 bugzilla: 168323 CVE: NA -------------------------------- [ Upstream commit aaac9a1b ] Use clk_disable_unprepare() in the error path of mtk_phy_init() to fix some resource leaks. Reported-by: Nkernel test robot <lkp@intel.com> Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NTiezhu Yang <yangtiezhu@loongson.cn> Reviewed-by: NChunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1621420659-15858-1-git-send-email-yangtiezhu@loongson.cnSigned-off-by: NVinod Koul <vkoul@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录