diff options
author | Thomas Hellstrom <unichrome@shipmail.org> | 2005-08-14 09:52:09 +0000 |
---|---|---|
committer | Thomas Hellstrom <unichrome@shipmail.org> | 2005-08-14 09:52:09 +0000 |
commit | 4f5961eeeee806a2d6e08e159c56262d4f060cba (patch) | |
tree | e5e70f2900f9cb441ad16eca442bc616018595e8 /shared-core/via_video.c | |
parent | 4050f5066a706bda74ed93ab858bbc9fc0b1477b (diff) |
VIA bugvixes by Joris van Rantwijk Initial commit.
Diffstat (limited to 'shared-core/via_video.c')
-rw-r--r-- | shared-core/via_video.c | 3 |
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)) { |