commit | a5c82e5622d1b7f479c9a43873c2c5ac1f67765c | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Dec 15 09:00:40 2015 -0200 |
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | Mon Jan 11 12:19:16 2016 -0200 |
tree | 4e16aafa5bc17fd1200bea8bf97bc87a82ba2d7f | |
parent | 8a95079668bf35b265d3bb6381b8badb5bfa826a [diff] |
[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>