]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/psp: move shared buffer frees into single function
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Apr 2022 21:19:29 +0000 (17:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 13:55:05 +0000 (09:55 -0400)
commit267ae5f896f73ba22f8d4f1511177b2ade27d303
tree59b5fc2b823d8048a9df094fea9009113bbe5238
parent4358a1f26564f418f4c1f0360b3f243ef2699119
drm/amdgpu/psp: move shared buffer frees into single function

So we can properly clean up if any of the TAs or TMR fails
to properly initialize or terminate.  This avoids any
memory leaks in the error case.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c