Re: [PATCH] drivers/amd/pm: fix a use-after-free in kv_parse_power_table

2023-12-14 Thread Alex Deucher
Applied. Thanks! On Thu, Dec 14, 2023 at 11:57 AM Zhipeng Lu wrote: > > When ps allocated by kzalloc equals to NULL, kv_parse_power_table > frees adev->pm.dpm.ps that allocated before. However, after the control > flow goes through the following call chains: > > kv_parse_power_table > |->

[PATCH] drivers/amd/pm: fix a use-after-free in kv_parse_power_table

2023-12-14 Thread Zhipeng Lu
When ps allocated by kzalloc equals to NULL, kv_parse_power_table frees adev->pm.dpm.ps that allocated before. However, after the control flow goes through the following call chains: kv_parse_power_table |-> kv_dpm_init |-> kv_dpm_sw_init |-> kv_dpm_fini The