Cast user data to correct type in radeon_surface_free's copyin.
parent
caa4212faa
commit
ed31275144
|
@ -1868,7 +1868,7 @@ static int radeon_surface_free(DRM_IOCTL_ARGS)
|
||||||
return DRM_ERR(EINVAL);
|
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) );
|
sizeof(memfree) );
|
||||||
|
|
||||||
if (free_surface(filp, dev_priv, memfree.address))
|
if (free_surface(filp, dev_priv, memfree.address))
|
||||||
|
|
Loading…
Reference in New Issue