diff options
author | Dave Airlie <airlied@optimus.localdomain> | 2006-12-19 17:42:45 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-12-19 17:58:14 +1100 |
commit | 2253e334cc6f8cf7dff6dbe398dd9ecbbcb4c5fe (patch) | |
tree | c098832d8f0f4dd87c607f363384b304aab811d7 /linux-core | |
parent | 8cc82c50332d62d1c58bbc4f184b1ab4ecfa9efc (diff) |
make sizeof match the copy struct
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c index 776f462e..3dcc4bfb 100644 --- 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(sv))) + if (copy_to_user(argp, &retv, sizeof(retv))) return -EFAULT; if (sv.drm_di_major != -1) { |