]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58725abf26f0b332ec44a573f40e8af567495d78
tree028eb7ad1c81ca42c1c31f7055c5fdc9a5ba2021
parentd9575c143f09dff3b0944c44acdda4fd4ea29d49
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