[media] media: Refactor copying IOCTL arguments from and to user space
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 3 May 2016 21:42:13 +0000 (18:42 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 13:25:55 +0000 (10:25 -0300)
commitbcd5081b05367d108c1380369c698a4601c41cfc
treeb2e776d33c4a0df1437849db45c6c77e2ee7fef9
parent6975264c4c6c00c88099b8927bac52838507cea9
[media] media: Refactor copying IOCTL arguments from and to user space

Refactor copying the IOCTL argument structs from the user space and back,
in order to reduce code copied around and make the implementation more
robust.

As a result, the copying is done while not holding the graph mutex.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/media-device.c