Skip to content
Commit 4d3d3a1b authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

stmmac: dwmac-mediatek: fix resource leak in probe



If mediatek_dwmac_clks_config() fails, then call stmmac_remove_config_dt()
before returning.  Otherwise it is a resource leak.

Fixes: fa4b3ca6 ("stmmac: dwmac-mediatek: fix clock issue")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YuJ4aZyMUlG6yGGa@kili


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 85f0173d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment