[media] uvcvideo: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 19 Aug 2016 08:50:05 +0000 (05:50 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 23 Nov 2016 22:06:41 +0000 (20:06 -0200)
commit4cc5bed1caeb6d40f2f41c4c5eb83368691fbffb
tree04a1a1351c4d16271781b8363f9c183bb14e98d0
parenteb165a20dfbe8b82e82b671e9941c4ad9f34388d
[media] uvcvideo: 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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_v4l2.c