Re: [PATCH v2] radeon: avoid double free in ci_dpm_init()

2023-04-17 Thread Alex Deucher
Thanks. Applied! Alex On Thu, Apr 13, 2023 at 11:12 AM Nikita Zhandarovich wrote: > > Several calls to ci_dpm_fini() will attempt to free resources that > either have been freed before or haven't been allocated yet. This > may lead to undefined or dangerous behaviour. > > For instance, if r600_

[PATCH v2] radeon: avoid double free in ci_dpm_init()

2023-04-13 Thread Nikita Zhandarovich
Several calls to ci_dpm_fini() will attempt to free resources that either have been freed before or haven't been allocated yet. This may lead to undefined or dangerous behaviour. For instance, if r600_parse_extended_power_table() fails, it might call r600_free_extended_power_table() as will ci_dpm