From: Dave Airlie Date: Tue, 19 Dec 2006 06:42:45 +0000 (+1100) Subject: make sizeof match the copy struct X-Git-Tag: libdrm-2.3.1~475 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2253e334cc6f8cf7dff6dbe398dd9ecbbcb4c5fe;p=platform%2Fupstream%2Flibdrm.git make sizeof match the copy struct --- diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c index 776f462..3dcc4bf 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) {