OSDN Git Service

Revert a change that accidentally went in with whitespace changes from
authorEric Anholt <anholt@freebsd.org>
Sun, 9 Apr 2006 20:10:32 +0000 (20:10 +0000)
committerEric Anholt <anholt@freebsd.org>
Sun, 9 Apr 2006 20:10:32 +0000 (20:10 +0000)
    Linux, which broke on FreeBSD. DRM_COPY_*_IOCTL checks for the size
    parameter matching the ioctl's command size there, since the copin/out
    happened earlier.

shared-core/savage_bci.c

index 5845412..20fea40 100644 (file)
@@ -959,8 +959,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;
 }