]> 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)
commite50b45a48808b633081fdb35f9afd01ea9727832
tree59b5fc2b823d8048a9df094fea9009113bbe5238
parent58725abf26f0b332ec44a573f40e8af567495d78
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