drm/i915/overlay: Use the ioctl parameters directly
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Sep 2018 19:01:44 +0000 (20:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Sep 2018 14:51:27 +0000 (15:51 +0100)
commitf9055e74f8976e47ccd81d7988cb491b5dc75339
tree4d8d2fb7b11058639726b493cd82cf30d3e9e0a5
parentc8124d399224d626728e2ffb95a1d564a7c06968
drm/i915/overlay: Use the ioctl parameters directly

The user parameters to put_image are not copied back to userspace
(DRM_IOW), and so we can modify the ioctl parameters (having already been
copied to a temporary kernel struct) directly and use those in place,
avoiding another temporary malloc and lots of manual copying.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180906190144.1272-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_overlay.c