Commit c9bd1399 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer

Call AMDGPUFreeRec from AMDGPUFreeScreen_KMS even if info == NULL

It's safe now.
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fb8444e7
......@@ -1031,15 +1031,10 @@ static Bool AMDGPUCloseScreen_KMS(CLOSE_SCREEN_ARGS_DECL)
void AMDGPUFreeScreen_KMS(FREE_SCREEN_ARGS_DECL)
{
SCRN_INFO_PTR(arg);
AMDGPUInfoPtr info = AMDGPUPTR(pScrn);
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, AMDGPU_LOGLEVEL_DEBUG,
"AMDGPUFreeScreen\n");
/* when server quits at PreInit, we don't need do this anymore */
if (!info)
return;
AMDGPUFreeRec(pScrn);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment