summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2025-04-02 14:06:13 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2025-04-23 10:08:34 +0200
commit99012014c902cd9ad85fd288d8a107f33a69855e (patch)
tree45648ae6bf2030c43b40385a5a0bdd86a6c8ffee /scripts/lib/kdoc/kdoc_parser.py
parent0a8a888167ddaaec7a292e5045782b8a240e6f3e (diff)
pmdomain: core: Reset genpd->states to avoid freeing invalid data
If genpd_alloc_data() allocates data for the default power-states for the genpd, let's make sure to also reset the pointer in the error path. This makes sure a genpd provider driver doesn't end up trying to free the data again, but using an invalid pointer. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Dhruva Gole <d-gole@ti.com> Link: https://lore.kernel.org/r/20250402120613.1116711-1-ulf.hansson@linaro.org
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions