From 409d6818eba8a2e2938e0f9281c9318928ba5a35 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 3 Jun 2008 12:42:49 +1000 Subject: drm: sg alloc should write back the handle to userspace (cherry picked from commit d5ae19ebcf2dc6402872e0575b5786b6e8117b6f) --- shared-core/drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-core/drm.h b/shared-core/drm.h index 0ae04b28..82a486f7 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -701,7 +701,7 @@ struct drm_set_version { #define DRM_IOCTL_AGP_BIND DRM_IOW( 0x36, struct drm_agp_binding) #define DRM_IOCTL_AGP_UNBIND DRM_IOW( 0x37, struct drm_agp_binding) -#define DRM_IOCTL_SG_ALLOC DRM_IOW( 0x38, struct drm_scatter_gather) +#define DRM_IOCTL_SG_ALLOC DRM_IOWR(0x38, struct drm_scatter_gather) #define DRM_IOCTL_SG_FREE DRM_IOW( 0x39, struct drm_scatter_gather) #define DRM_IOCTL_WAIT_VBLANK DRM_IOWR(0x3a, union drm_wait_vblank) -- cgit v1.2.3