From ac296d9137b02753bc79a9930d168855adea9c95 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 13 Jan 2006 01:02:01 +0000 Subject: When failing to parse MetaModes, reset CRT2pScrn to NULL after free'ing it so we don't crash when trying to use it later (such as in RADEONFreeRec). --- ChangeLog | 7 +++++++ src/radeon_driver.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0c398d80..fa89c352 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-12 Alan Coopersmith + + * src/radeon_driver.c (RADEONPreInitModes): + When failing to parse MetaModes, reset CRT2pScrn to NULL after + free'ing it so we don't crash when trying to use it later + (such as in RADEONFreeRec). + 2006-01-08 Adam Jackson * src/radeon.h: diff --git a/src/radeon_driver.c b/src/radeon_driver.c index b78322f6..163ea6ee 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -1,4 +1,5 @@ /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c,v 1.117 2004/02/19 22:38:12 tsi Exp $ */ +/* $XdotOrg: $ */ /* * Copyright 2000 ATI Technologies Inc., Markham, Ontario, and * VA Linux Systems Inc., Fremont, California. @@ -4185,6 +4186,7 @@ static Bool RADEONPreInitModes(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10) xfree(info->CRT2pScrn->monitor); } xfree(info->CRT2pScrn); + info->CRT2pScrn = NULL; } pScrn->modes = info->CRT1Modes; info->CRT1Modes = NULL; -- cgit v1.2.3