summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-04-09 20:10:32 +0000
committerEric Anholt <anholt@freebsd.org>2006-04-09 20:10:32 +0000
commit63c4d0257616c799d4f0bb84be3f17dbaf867495 (patch)
tree0cf853be2cb7d832d66321b2df59eb6c0b36018f /shared-core
parent6cb366b5a83996fc7f4ceb6b4af1a89473407866 (diff)
Revert a change that accidentally went in with whitespace changes from
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.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/savage_bci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/savage_bci.c b/shared-core/savage_bci.c
index 5845412e..20fea40f 100644
--- a/shared-core/savage_bci.c
+++ b/shared-core/savage_bci.c
@@ -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;
}