diff options
Diffstat (limited to 'linux/r128_context.c')
-rw-r--r-- | linux/r128_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/r128_context.c b/linux/r128_context.c index 0d8b2f5c..0741e774 100644 --- a/linux/r128_context.c +++ b/linux/r128_context.c @@ -109,7 +109,9 @@ int r128_resctx(struct inode *inode, struct file *filp, unsigned int cmd, 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], + &i, + sizeof(i))) return -EFAULT; } } |