diff options
author | Alan Coopersmith <alan dot coopersmith at sun dot com> | 2006-01-13 01:02:01 +0000 |
---|---|---|
committer | Alan Coopersmith <alan dot coopersmith at sun dot com> | 2006-01-13 01:02:01 +0000 |
commit | 5d287d60dba4ed2554f6483c747587a40a0ed135 (patch) | |
tree | 4816ae4d73139cdc10428c00786f98744bf2c085 | |
parent | 28a5efc85cd733c469b94d1125b6e5ea6596d167 (diff) |
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).
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/radeon_driver.c | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2006-01-12 Alan Coopersmith <alan.coopersmith@sun.com> + + * 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 <ajax@freedesktop.org> * src/radeon.h: diff --git a/src/radeon_driver.c b/src/radeon_driver.c index b78322f..163ea6e 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; |