mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
UPSTREAM: 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. Bug 3979990 Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Change-Id: Idc30457b566db1ada119574a775512ca992b6db2 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2871550 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Timo Alho <talho@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c711393bdf
commit
f0b50808e6
@@ -286,7 +286,7 @@ remove:
|
||||
tegra_powergate_remove(powergate);
|
||||
}
|
||||
|
||||
kfree(genpd->domains);
|
||||
kfree(domains);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user