Commit c73681e7 authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie

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: default avatarDave Airlie <airlied@linux.ie>
parent 24d10942
......@@ -369,7 +369,7 @@ int drm_resctx( struct inode *inode, struct file *filp,
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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment