WSL2-Linux-Kernel/drivers/gpu/drm/amd
Mario Limonciello bd79de8bd3 drm/amd: Fix an error handling mistake in psp_sw_init()
[ Upstream commit c01aebeef3 ]

If the second call to amdgpu_bo_create_kernel() fails, the memory
allocated from the first call should be cleared.  If the third call
fails, the memory from the second call should be cleared.

Fixes: b95b539168 ("drm/amdgpu/psp: move PSP memory alloc from hw_init to sw_init")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-03 10:22:39 +02:00
..
acp
amdgpu drm/amd: Fix an error handling mistake in psp_sw_init() 2023-08-03 10:22:39 +02:00
amdkfd drm/amdkfd: Fix potential deallocation of previously deallocated memory. 2023-07-23 13:47:06 +02:00
display Revert "drm/amd/display: edp do not add non-edid timings" 2023-07-27 08:47:05 +02:00
include drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback 2022-12-31 13:14:41 +01:00
pm drm/amd/pm: Fix power context allocation in SMU13 2023-06-14 11:13:05 +02:00