projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d1094
)
drm: copy the right data back to userspace for getreserved contexts ioctl
author
Dave Airlie
<airlied@starflyer.(none)>
Fri, 5 Aug 2005 12:02:48 +0000
(22:02 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Fri, 5 Aug 2005 12:02:48 +0000
(22:02 +1000)
This fixes the information copied back to userspace by the get reserved
contexts ioctl.
From: Egbert Eich <eich@suse.de>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_context.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/drm_context.c
b/drivers/char/drm/drm_context.c
index a7cfabd1ca2e9d0801c3e8c10b12cc1acbb0601c..5af46c9830ec92096cf2397c5ada54c2bed03e35 100644
(file)
--- a/
drivers/char/drm/drm_context.c
+++ b/
drivers/char/drm/drm_context.c
@@
-369,7
+369,7
@@
int drm_resctx( struct inode *inode, struct file *filp,
for ( i = 0 ; i < DRM_RESERVED_CONTEXTS ; i++ ) {
ctx.handle = i;
if ( copy_to_user( &res.contexts[i],
- &
i, sizeof(i
) ) )
+ &
ctx, sizeof(ctx
) ) )
return -EFAULT;
}
}