aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_gem.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-08-20 19:47:45 -0400
committerDave Airlie <airlied@redhat.com>2009-08-20 19:51:30 -0400
commite3b2415e281a97ade36d88404094a90cfea838c0 (patch)
tree80c22c9a94fcf57d6cfb7b6375e771fdb1c03b42 /drivers/gpu/drm/radeon/radeon_gem.c
parent6c30c53fd5ae6a99a23ad78e90c428d2c8ffb07f (diff)
drm/radeon/kms: implement the bo busy ioctl properly.
The previous patch assumes the ioctl already existed, when it actually didn't. It also didn't return the correct error code. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_gem.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c
index d4ceff13bbb1..14c199802920 100644
--- a/drivers/gpu/drm/radeon/radeon_gem.c
+++ b/drivers/gpu/drm/radeon/radeon_gem.c
@@ -283,7 +283,7 @@ int radeon_gem_busy_ioctl(struct drm_device *dev, void *data,
283 mutex_lock(&dev->struct_mutex); 283 mutex_lock(&dev->struct_mutex);
284 drm_gem_object_unreference(gobj); 284 drm_gem_object_unreference(gobj);
285 mutex_unlock(&dev->struct_mutex); 285 mutex_unlock(&dev->struct_mutex);
286 return 0; 286 return r;
287} 287}
288 288
289int radeon_gem_wait_idle_ioctl(struct drm_device *dev, void *data, 289int radeon_gem_wait_idle_ioctl(struct drm_device *dev, void *data,