diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2023-03-01 15:47:56 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2023-04-03 14:29:46 +0200 |
commit | 61228c9b240468dba55ef8a4ac93e777c810c68b (patch) | |
tree | edf3ad4379cc225fbacfed579ec43491e3f5dc5d /drivers/soc/tegra | |
parent | 9737a63558deeec01ce202c6c06c96a0503a3128 (diff) | |
download | lwn-61228c9b240468dba55ef8a4ac93e777c810c68b.tar.gz lwn-61228c9b240468dba55ef8a4ac93e777c810c68b.zip |
soc/tegra: bpmp: Actually free memory on error path
Within the error path, genpd->domains has not been set, so we need
to pass the domains variable to kfree instead.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc/tegra')
-rw-r--r-- | drivers/soc/tegra/powergate-bpmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/tegra/powergate-bpmp.c b/drivers/soc/tegra/powergate-bpmp.c index 8eaf50d0b6af..179ed895c279 100644 --- a/drivers/soc/tegra/powergate-bpmp.c +++ b/drivers/soc/tegra/powergate-bpmp.c @@ -286,7 +286,7 @@ remove: tegra_powergate_remove(powergate); } - kfree(genpd->domains); + kfree(domains); return err; } |