mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-04-14 11:04:42 +00:00
Call AMDGPUFreeRec from AMDGPUFreeScreen_KMS even if info == NULL
It's safe now. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
fb8444e731
commit
c9bd1399a1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user