diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-29 22:20:15 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-10-06 12:05:01 -0400 |
commit | 525530ad9a7ec9aa34266e1429cc5ef9acb58e6c (patch) | |
tree | 4988d05f91af80af79f71539ceeed340083b8d5a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 8c39634d28fa460869702b9801d2efe06671b342 (diff) | |
download | linux-525530ad9a7ec9aa34266e1429cc5ef9acb58e6c.tar.gz linux-525530ad9a7ec9aa34266e1429cc5ef9acb58e6c.tar.bz2 linux-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 <yangyingliang@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions