]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] v4l2-ctrls.c: copy-and-paste error: user_to_new -> new_to_user
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 5 Jul 2011 09:56:37 +0000 (06:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Jul 2011 22:04:19 +0000 (19:04 -0300)
The new values were never copied to userspace due to this copy and paste
error. This was introduced during the rewrite of this part of the code in
commit 3219f8a362640b7e4b7e2187b1094c4e46d85aa0.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c

index 37a50e57f22293ab57b8e94324efb3cc103bc397..1f84b9676f10a666e862352a7fdd38dce2b17d36 100644 (file)
@@ -1929,7 +1929,7 @@ static int try_set_ext_ctrls(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
                if (!ret) {
                        idx = i;
                        do {
-                               ret = user_to_new(cs->controls + idx,
+                               ret = new_to_user(cs->controls + idx,
                                                helpers[idx].ctrl);
                                idx = helpers[idx].next;
                        } while (!ret && idx);