]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a0b4cda7af81cbd92ceef91169b369136a0d450
tree4d8d2fb7b11058639726b493cd82cf30d3e9e0a5
parent26128981ad562f576e783f5e92b334a54981d55d
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