]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l2-ctrl: fix error return of copy_to/from_user
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 10 Jun 2014 10:07:38 +0000 (07:07 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 14:57:20 +0000 (11:57 -0300)
commit40265bbe42933920684136ff759e6340eaf72774
tree7566409f2c875815afb771437dc5e22fbedc08e4
parentc336f75e1e822658122b96d874da01f5f4df994d
[media] v4l2-ctrl: fix error return of copy_to/from_user

copy_to/from_user returns the number of bytes not copied, it does not
return a 'normal' linux error code.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-ctrls.c