From a36d5b33aaa7731621a288a6a9a02bf86c8c80e4 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Mon, 7 Feb 2005 21:11:59 +0000 Subject: [PATCH] Cast user data to correct type in radeon_surface_free's copyin. --- shared/radeon_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/radeon_state.c b/shared/radeon_state.c index 15c9c6f8..ba8e73a4 100644 --- a/shared/radeon_state.c +++ b/shared/radeon_state.c @@ -1895,7 +1895,7 @@ 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 ) )