aboutsummaryrefslogtreecommitdiff
path: root/shared-core/via_video.c
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2005-08-14 09:52:09 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2005-08-14 09:52:09 +0000
commit4f5961eeeee806a2d6e08e159c56262d4f060cba (patch)
treee5e70f2900f9cb441ad16eca442bc616018595e8 /shared-core/via_video.c
parent4050f5066a706bda74ed93ab858bbc9fc0b1477b (diff)
VIA bugvixes by Joris van Rantwijk Initial commit.
Diffstat (limited to 'shared-core/via_video.c')
-rw-r--r--shared-core/via_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/via_video.c b/shared-core/via_video.c
index 1e2d4445..8ba09674 100644
--- a/shared-core/via_video.c
+++ b/shared-core/via_video.c
@@ -53,6 +53,9 @@ via_release_futex(drm_via_private_t *dev_priv, int context)
unsigned int i;
volatile int *lock;
+ if (!dev_priv->sarea_priv)
+ return;
+
for (i=0; i < VIA_NR_XVMC_LOCKS; ++i) {
lock = (int *) XVMCLOCKPTR(dev_priv->sarea_priv, i);
if ( (_DRM_LOCKING_CONTEXT( *lock ) == context)) {