GPU-DRM-Savage: Use memdup_user() rather than duplicating
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 18 Aug 2016 16:12:03 +0000 (18:12 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Aug 2016 08:58:55 +0000 (10:58 +0200)
commita6e3918bcdb1253083f962d747ec699bdb4bacd9
treed0831ef137c59c1e337668e1d996f4b9df4e0122
parent1832040d010ecf41671104259f51f6368fcfcb5b
GPU-DRM-Savage: Use memdup_user() rather than duplicating

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/021efa32-c259-e799-a80e-630972291815@users.sourceforge.net
drivers/gpu/drm/savage/savage_state.c