projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc82c5
)
make sizeof match the copy struct
author
Dave Airlie
<airlied@optimus.localdomain>
Tue, 19 Dec 2006 06:42:45 +0000
(17:42 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Tue, 19 Dec 2006 06:58:14 +0000
(17:58 +1100)
linux-core/drm_ioctl.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_ioctl.c
b/linux-core/drm_ioctl.c
index
776f462
..
3dcc4bf
100644
(file)
--- a/
linux-core/drm_ioctl.c
+++ b/
linux-core/drm_ioctl.c
@@
-337,7
+337,7
@@
int drm_setversion(DRM_IOCTL_ARGS)
retv.drm_dd_major = dev->driver->major;
retv.drm_dd_minor = dev->driver->minor;
- if (copy_to_user(argp, &retv, sizeof(
s
v)))
+ if (copy_to_user(argp, &retv, sizeof(
ret
v)))
return -EFAULT;
if (sv.drm_di_major != -1) {