virtio-gpu: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 18 Aug 2016 20:35:14 +0000 (22:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Aug 2016 08:58:55 +0000 (10:58 +0200)
commit7ad61e6b4a79c5057eeb2d6062b0021e33ddc9f6
treea53f741e99eefbec63bf1b95b49625bea16df286
parenta6e3918bcdb1253083f962d747ec699bdb4bacd9
virtio-gpu: Use memdup_user() rather than duplicating its implementation

Reuse existing functionality from memdup_user() instead of keeping
duplicate source code.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/401e68fc-5515-7a7a-be2e-503dee676b34@users.sourceforge.net
drivers/gpu/drm/virtio/virtgpu_ioctl.c