Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 801c8341 authored by Yuan Can's avatar Yuan Can Committed by Greg Kroah-Hartman
Browse files

clk: tegra: tegra124-emc: Fix potential memory leak



[ Upstream commit 53a06e5924c0d43c11379a08c5a78529c3e61595 ]

The tegra and tegra needs to be freed in the error handling path, otherwise
it will be leaked.

Fixes: 2db04f16 ("clk: tegra: Add EMC clock driver")
Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221209094124.71043-1-yuancan@huawei.com


Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 262db3ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment