diff options
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c index fd3f0280..baa8437d 100644 --- a/linux-core/drm_context.c +++ b/linux-core/drm_context.c @@ -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; } } |