parent
c789ea1521
commit
99c3f88c69
|
@ -372,7 +372,7 @@ int drm_resctx(struct inode *inode, struct file *filp,
|
|||
memset(&ctx, 0, sizeof(ctx));
|
||||
for (i = 0; i < DRM_RESERVED_CONTEXTS; i++) {
|
||||
ctx.handle = i;
|
||||
if (copy_to_user(&res.contexts[i], &i, sizeof(i)))
|
||||
if (copy_to_user(&res.contexts[i], &ctx, sizeof(ctx)))
|
||||
return -EFAULT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue