diff options
author | Dave Airlie <airlied@linux.ie> | 2005-08-05 13:04:21 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-08-05 13:04:21 +0000 |
commit | 99c3f88c69e5a9ac7cddd0bb24e8be3415616656 (patch) | |
tree | 2e77ec01bc8fb8b08df6ae8b2c6dd21f482828b1 /linux-core | |
parent | c789ea1521ac9e935f2a1c6c043619d89bae9c16 (diff) |
Fix bug in return to userspace resctx code
From: Egbert Eich <eich@suse.de>
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; } } |