From 16954fab59f95bdca4540c4496b2ec0759c447e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 14 Feb 2018 18:20:04 +0100 Subject: Call RADEONFreeRec from RADEONFreeScreen_KMS even if info == NULL It's safe now. (Ported from amdgpu commit c9bd1399a13cea2e1331af2c826ca054b88db071) Reviewed-by: Alex Deucher --- src/radeon_kms.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 06f7883e..6e5bf781 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -2206,14 +2206,9 @@ static Bool RADEONCloseScreen_KMS(ScreenPtr pScreen) void RADEONFreeScreen_KMS(ScrnInfoPtr pScrn) { - RADEONInfoPtr info = RADEONPTR(pScrn); - xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG, "RADEONFreeScreen\n"); - /* when server quits at PreInit, we don't need do this anymore*/ - if (!info) return; - RADEONFreeRec(pScrn); } -- cgit v1.2.3