diff options
author | Alex VillacĂs Lasso <alex@karlalex.palosanto.com> | 2009-03-14 21:34:48 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-03-23 12:26:27 -0400 |
commit | 0f4369c95b6ef948743c9b244709e454b8b8ef7f (patch) | |
tree | 3f2be6c279bb6a93a91da7bcda2b1459a42a55f4 | |
parent | 343b2f312b1e555f9d03a499ddbe4c9b33b3a6e5 (diff) |
Fix crash by null pointer access when DRI is not available.
-rw-r--r-- | 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; |