From: Dave Airlie Date: Sun, 19 Mar 2006 09:12:23 +0000 (+1100) Subject: drm: fixup improper cast. X-Git-Tag: firefly_0821_release~36570^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f15e92d702bba47f451bd5f63e170252c6e1bba2;p=firefly-linux-kernel-4.4.55.git drm: fixup improper cast. Signed-off-by: Dave Airlie --- diff --git a/drivers/char/drm/radeon_state.c b/drivers/char/drm/radeon_state.c index 56e56b873616..b006b1c5d856 100644 --- a/drivers/char/drm/radeon_state.c +++ b/drivers/char/drm/radeon_state.c @@ -1996,7 +1996,7 @@ static int radeon_surface_free(DRM_IOCTL_ARGS) return DRM_ERR(EINVAL); } - DRM_COPY_FROM_USER_IOCTL(memfree, (drm_radeon_mem_free_t __user *) data, + DRM_COPY_FROM_USER_IOCTL(memfree, (drm_radeon_surface_free_t __user *) data, sizeof(memfree)); if (free_surface(filp, dev_priv, memfree.address))