make sizeof match the copy struct
authorDave Airlie <airlied@optimus.localdomain>
Tue, 19 Dec 2006 06:42:45 +0000 (17:42 +1100)
committerDave Airlie <airlied@linux.ie>
Tue, 19 Dec 2006 06:58:14 +0000 (17:58 +1100)
linux-core/drm_ioctl.c

index 776f462..3dcc4bf 100644 (file)
@@ -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) {