mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
drm/amd/powerplay: fix a reversed condition
This test was reversed so it would end up leading to a NULL dereference.
Fixes: 4630f0faae ('drm/amd/powerplay: add Carrizo smu support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
85a21eafbc
commit
2500a3c9e0
1 changed files with 1 additions and 1 deletions
|
|
@ -818,7 +818,7 @@ static int cz_smu_fini(struct pp_smumgr *smumgr)
|
|||
return -EINVAL;
|
||||
|
||||
cz_smu = (struct cz_smumgr *)smumgr->backend;
|
||||
if (!cz_smu) {
|
||||
if (cz_smu) {
|
||||
cgs_free_gpu_mem(smumgr->device,
|
||||
cz_smu->toc_buffer.handle);
|
||||
cgs_free_gpu_mem(smumgr->device,
|
||||
|
|
|
|||
Loading…
Reference in a new issue