[Intel-gfx] [PATCH] drm/i915: Add to_user_ptr()

Chris Wilson chris at chris-wilson.co.uk
Fri Feb 22 15:29:44 CET 2013


On Fri, Feb 22, 2013 at 04:12:51PM +0200, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> to_user_ptr() simply casts a pointer passed as u64 from user space
> to void __user * correctly. Using this lets us get rid of all the
> tiresome casts.
> 
> The idea came from Chris Wilson <chris at chris-wilson.co.uk>.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list