summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2009-03-18 19:28:27 +1000
committerBen Skeggs <bskeggs@redhat.com>2009-03-19 16:11:05 +1000
commit4fec64f1663441eea4b5a1e8550c6bf3cae6e1fb (patch)
tree71dcb5f73812366555007caab78d7e65daea7a1e
parentabfe1738e084a9a9f94dc3b69140848c5c0fab64 (diff)
nv50: unpin cursor when not bound to a crtc
-rw-r--r--linux-core/nv50_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/nv50_crtc.c b/linux-core/nv50_crtc.c
index 3536237c..ed384253 100644
--- a/linux-core/nv50_crtc.c
+++ b/linux-core/nv50_crtc.c
@@ -431,6 +431,8 @@ static int nv50_crtc_cursor_set(struct drm_crtc *drm_crtc,
return -EINVAL;
if (crtc->cursor.gem) {
+ nouveau_gem_unpin(crtc->cursor.gem);
+
mutex_lock(&dev->struct_mutex);
drm_gem_object_unreference(crtc->cursor.gem);
mutex_unlock(&dev->struct_mutex);