[PATCH] Fix crash by null pointer access when DRI is not available.
Alex Villacís Lasso
alex at karlalex.palosanto.com
Sat Mar 14 19:34:48 PDT 2009
---
src/savage_video.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/savage_video.c b/src/savage_video.c
index 57483e0..bccb801 100644
--- a/src/savage_video.c
+++ b/src/savage_video.c
@@ -1965,7 +1965,7 @@ SavagePutImage(
/* Check whether AGP buffers can be allocated. If not, fall back to ordinary
upload to framebuffer (slower) */
- if (!pPriv->tried_agp && !psav->IsPCI && psav->drmFD > 0) {
+ if (!pPriv->tried_agp && !psav->IsPCI && psav->drmFD > 0 && psav->DRIServerInfo != NULL) {
int ret;
SAVAGEDRIServerPrivatePtr pSAVAGEDRIServer = psav->DRIServerInfo;
--
1.6.0.6
--------------080507090003070608000501--
More information about the xorg
mailing list