aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/savage_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/savage_state.c')
-rw-r--r--drivers/char/drm/savage_state.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/drm/savage_state.c b/drivers/char/drm/savage_state.c
index 39654cb5d570..e87a5d59b99c 100644
--- a/drivers/char/drm/savage_state.c
+++ b/drivers/char/drm/savage_state.c
@@ -816,10 +816,8 @@ static int savage_dispatch_clear(drm_savage_private_t * dev_priv,
816 if (nbox == 0) 816 if (nbox == 0)
817 return 0; 817 return 0;
818 818
819 DRM_GET_USER_UNCHECKED(mask, &((const drm_savage_cmd_header_t *)data) 819 DRM_GET_USER_UNCHECKED(mask, &data->clear1.mask);
820 ->clear1.mask); 820 DRM_GET_USER_UNCHECKED(value, &data->clear1.value);
821 DRM_GET_USER_UNCHECKED(value, &((const drm_savage_cmd_header_t *)data)
822 ->clear1.value);
823 821
824 clear_cmd = BCI_CMD_RECT | BCI_CMD_RECT_XP | BCI_CMD_RECT_YP | 822 clear_cmd = BCI_CMD_RECT | BCI_CMD_RECT_XP | BCI_CMD_RECT_YP |
825 BCI_CMD_SEND_COLOR | BCI_CMD_DEST_PBD_NEW; 823 BCI_CMD_SEND_COLOR | BCI_CMD_DEST_PBD_NEW;