diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-16 01:54:24 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-16 01:54:24 +0000 |
commit | c6eb3a7378c9e82e389196de6c38c96e99fd8db4 (patch) | |
tree | 81127444b9f7025d3917bad57b18ba7d523d54ac | |
parent | fa678e04f57b615f7507b5dd160ce1b32c877aa5 (diff) |
//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>
-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 32de27e7..f3f66a98 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3157,8 +3157,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; } } } |