summaryrefslogtreecommitdiff
path: root/src/evergreen_accel.c
diff options
context:
space:
mode:
authorMathieu BĂ©rard <mathieu@mberard.eu>2010-09-09 19:32:38 -0400
committerAlex Deucher <alexdeucher@gmail.com>2010-09-09 19:32:38 -0400
commite26a59e9db8067882327f872e3d2d760ce4c66f3 (patch)
tree4bfe55ed5c6f9b8dd2cbd7288d4649280a4fa16c /src/evergreen_accel.c
parent7cc0d3311f23ad569af004e0e4a0e2efbac107e5 (diff)
Fix NULL possible deref in evergreen_cp_wait_vline_sync
Diffstat (limited to 'src/evergreen_accel.c')
-rw-r--r--src/evergreen_accel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/evergreen_accel.c b/src/evergreen_accel.c
index d319bc22..38666eef 100644
--- a/src/evergreen_accel.c
+++ b/src/evergreen_accel.c
@@ -242,12 +242,14 @@ void evergreen_cp_wait_vline_sync(ScrnInfoPtr pScrn, PixmapPtr pPix,
xf86CrtcPtr crtc, int start, int stop)
{
RADEONInfoPtr info = RADEONPTR(pScrn);
- drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
+ drmmode_crtc_private_ptr drmmode_crtc;
uint32_t offset;
if (!crtc)
return;
+ drmmode_crtc = crtc->driver_private;
+
if (stop < start)
return;