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>
This commit is contained in:
Mikko Perttunen 2023-03-01 15:47:56 +02:00 committed by Thierry Reding
parent 9737a63558
commit 61228c9b24
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ remove:
tegra_powergate_remove(powergate);
}
kfree(genpd->domains);
kfree(domains);
return err;
}