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)
commitda40bf8f9376370b5bc2fda07aadaaddc308b1eb
tree59b5fc2b823d8048a9df094fea9009113bbe5238
parentfb4f4f4256f86501bdd5117a9fe00c3a84519276
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