diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-07-28 14:52:09 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-28 10:43:04 -0700 |
commit | 4d3d3a1b244fd54629a6b7047f39a7bbc8d11910 (patch) | |
tree | 86507bdbfcd1e69f12dcf756af11f3f9fb702dac /arch/x86 | |
parent | 85f0173df35e5462d89947135a6a5599c6c3ef6f (diff) | |
download | linux-4d3d3a1b244fd54629a6b7047f39a7bbc8d11910.tar.bz2 |
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: fa4b3ca60e80 ("stmmac: dwmac-mediatek: fix clock issue")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YuJ4aZyMUlG6yGGa@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions