From ac9cbaf32176cf144bc694ac879e7c9e2920f762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 2 Jul 2007 10:06:02 +0200 Subject: radeon: Fully zero-initialize info->CRT2pScrn->monitor. This prevents modes from getting rejected due to the uninitialized maxPixClock value. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=9816 . --- src/radeon_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/radeon_driver.c') diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 4e1868d8..5c20b0eb 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -7323,7 +7323,7 @@ RADEONGetMergedFBOptions(ScrnInfoPtr pScrn) if(info->MergedFB) { /* fill in monitor */ - info->CRT2pScrn->monitor = xalloc(sizeof(MonRec)); + info->CRT2pScrn->monitor = xcalloc(1, sizeof(MonRec)); if(info->CRT2pScrn->monitor) { DisplayModePtr tempm = NULL, currentm = NULL, newm = NULL; memcpy(info->CRT2pScrn->monitor, pScrn->monitor, sizeof(MonRec)); -- cgit v1.2.3