drm/i915: use memdup_user_nul
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:40:17 +0000 (23:40 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 May 2017 07:28:39 +0000 (09:28 +0200)
commit261aeba834f384cd9cf85be72078291d30fca4e4
tree1372e92d149b334a65a0c868f49912e5bf2ef5cf
parent6f38123ecaac446312a63523b68df84ceb5a06ed
drm/i915: use memdup_user_nul

Use memdup_user_nul() helper instead of open-coding to simplify the
code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/6baf3aa45d0b5e0fd016b508bac905ebf8443aac.1493779294.git.geliangtang@gmail.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_pipe_crc.c