tree 4904148ca238f74690819a532626f457e662a194 parent 24d109422787119337cd83732feef930d6a23f5c author Dave Airlie <[EMAIL PROTECTED](none)> Fri, 05 Aug 2005 22:02:48 +1000 committer Dave Airlie <[EMAIL PROTECTED]> Fri, 05 Aug 2005 22:02:48 +1000
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 <[EMAIL PROTECTED]> Signed-off-by: Dave Airlie <[EMAIL PROTECTED]> drivers/char/drm/drm_context.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/drm/drm_context.c b/drivers/char/drm/drm_context.c --- a/drivers/char/drm/drm_context.c +++ b/drivers/char/drm/drm_context.c @@ -369,7 +369,7 @@ int drm_resctx( struct inode *inode, str for ( i = 0 ; i < DRM_RESERVED_CONTEXTS ; i++ ) { ctx.handle = i; if ( copy_to_user( &res.contexts[i], - &i, sizeof(i) ) ) + &ctx, sizeof(ctx) ) ) return -EFAULT; } } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html