diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-06-04 20:04:36 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-06-04 20:04:36 +0000 |
commit | daae70d9083e9c15358f160f0df3176e344f1cb9 (patch) | |
tree | befd927cad6910fd1d1f21b8b2d5bd531018e53b /src | |
parent | c27c193f192b117232dbe39575d3d5ab7c6a1b1e (diff) |
Sync with 6.8.2 branch: Bugzilla #1306
(https://bugs.freedesktop.org/show_bug.cgi?id=1306) attachment #1291
(https://bugs.freedesktop.org/attachment.cgi?id=1291): Fix SEGV in
"radeon" driver. Patch by Kevin E. Martin <kem@freedesktop.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index f8172306..5b078b92 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3485,8 +3485,9 @@ static int RADEONValidateFPModes(ScrnInfoPtr pScrn, char **ppModeName) new->next = NULL; new->prev = last; - last->next = new; + if (last) last->next = new; last = new; + if (!first) first = new; } } } |