drm: savage: compat fix from drm git.
authorEric Anholt <eric@anholt.net>
Tue, 19 Dec 2006 06:20:02 +0000 (17:20 +1100)
committerDave Airlie <airlied@linux.ie>
Tue, 19 Dec 2006 06:20:02 +0000 (17:20 +1100)
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/savage_bci.c

index a9a84f88df5e465ce2c9461e97b91bd9c48e074b..b94fab55680940dd44688052e0987634ad3b9cc1 100644 (file)
@@ -963,8 +963,8 @@ static int savage_bci_event_emit(DRM_IOCTL_ARGS)
 
        event.count = savage_bci_emit_event(dev_priv, event.flags);
        event.count |= dev_priv->event_wrap << 16;
-       DRM_COPY_TO_USER_IOCTL(&((drm_savage_event_emit_t __user *) data)->
-                              count, event.count, sizeof(event.count));
+       DRM_COPY_TO_USER_IOCTL((drm_savage_event_emit_t __user *) data,
+                              event, sizeof(event));
        return 0;
 }