[media] media-device: copy_to/from_user() returns positive
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Dec 2015 11:00:40 +0000 (09:00 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:16 +0000 (12:19 -0200)
commita5c82e5622d1b7f479c9a43873c2c5ac1f67765c
tree4e16aafa5bc17fd1200bea8bf97bc87a82ba2d7f
parent8a95079668bf35b265d3bb6381b8badb5bfa826a
[media] media-device: copy_to/from_user() returns positive

The copy_to/from_user() functions return the number of bytes *not*
copied.  They don't return error codes.

Fixes: 4f6b3f363475 ('media] media-device: add support for MEDIA_IOC_G_TOPOLOGY ioctl')

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c