mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 05:08:04 +02:00
Fix bug in return to userspace resctx code
From: Egbert Eich <eich@suse.de>
This commit is contained in:
parent
c789ea1521
commit
99c3f88c69
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue