aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-09-29 14:20:15 +0000
committerAlex Deucher <[email protected]>2022-10-06 16:05:01 +0000
commit525530ad9a7ec9aa34266e1429cc5ef9acb58e6c (patch)
tree4988d05f91af80af79f71539ceeed340083b8d5a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/amd/display: clean up one inconsistent indenting (diff)
downloadkernel-525530ad9a7ec9aa34266e1429cc5ef9acb58e6c.tar.gz
kernel-525530ad9a7ec9aa34266e1429cc5ef9acb58e6c.zip
drm/amdgpu/sdma: add missing release_firmware() in amdgpu_sdma_init_microcode()
In some error path in amdgpu_sdma_init_microcode(), release_firmware() is not called, the memory allocated in request_firmware() will be leaked, calling amdgpu_sdma_destroy_inst_ctx() which calls release_firmware() to avoid memory leak. Fixes: 15aa13056d11da ("drm/amdgpu: add function to init SDMA microcode") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions