Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}