drm/amdgpu/psp: fix memory leak in terminate functions
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Apr 2022 20:51:00 +0000 (16:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 13:55:02 +0000 (09:55 -0400)
commitfb4f4f4256f86501bdd5117a9fe00c3a84519276
tree028eb7ad1c81ca42c1c31f7055c5fdc9a5ba2021
parentf03d97b0bd96d18d8a75d7c9b3652aaf79da9af6
drm/amdgpu/psp: fix memory leak in terminate functions

Make sure we free the memory even if the unload fails.

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