aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2023-07-13 05:14:59 +0000
committerAlex Deucher <[email protected]>2023-07-21 20:52:25 +0000
commit6b4cf4a35f6b89d75524c8d8751c558369ad2e6d (patch)
treefec8d722f3816146463b23487fca078f804f0fe6 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amdgpu: Fix infinite loop in gfxhub_v1_2_xcc_gart_enable (v2) (diff)
downloadkernel-6b4cf4a35f6b89d75524c8d8751c558369ad2e6d.tar.gz
kernel-6b4cf4a35f6b89d75524c8d8751c558369ad2e6d.zip
drm/amd: Fix an error handling mistake in psp_sw_init()
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: b95b5391684b ("drm/amdgpu/psp: move PSP memory alloc from hw_init to sw_init") Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions