diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-08-05 08:02:48 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-08-05 08:02:48 -0400 |
commit | c73681e77b40697d16ada777adf2c6dc4db05917 (patch) | |
tree | 4904148ca238f74690819a532626f457e662a194 /drivers/char | |
parent | 24d109422787119337cd83732feef930d6a23f5c (diff) |
drm: copy the right data back to userspace for getreserved contexts ioctl
This fixes the information copied back to userspace by the get reserved
contexts ioctl.
From: Egbert Eich <eich@suse.de>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/drm/drm_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_context.c b/drivers/char/drm/drm_context.c index a7cfabd1ca2e..5af46c9830ec 100644 --- a/drivers/char/drm/drm_context.c +++ b/drivers/char/drm/drm_context.c | |||
@@ -369,7 +369,7 @@ int drm_resctx( struct inode *inode, struct file *filp, | |||
369 | for ( i = 0 ; i < DRM_RESERVED_CONTEXTS ; i++ ) { | 369 | for ( i = 0 ; i < DRM_RESERVED_CONTEXTS ; i++ ) { |
370 | ctx.handle = i; | 370 | ctx.handle = i; |
371 | if ( copy_to_user( &res.contexts[i], | 371 | if ( copy_to_user( &res.contexts[i], |
372 | &i, sizeof(i) ) ) | 372 | &ctx, sizeof(ctx) ) ) |
373 | return -EFAULT; | 373 | return -EFAULT; |
374 | } | 374 | } |
375 | } | 375 | } |