[media] ivtv: Fix sparse warning regarding a user pointer in ivtv_write_vbi_from_user()
authorAndy Walls <awalls@md.metrocast.net>
Wed, 9 Feb 2011 01:39:28 +0000 (22:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:35 +0000 (20:32 -0300)
Fix the first, botched attempt at preventing direct use of a user pointer in
ivtv_write_vbi().

Reported-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ivtv/ivtv-vbi.c

index 2dfa957b0fd5c3dc03d8c69e6e6cfbcc7d906bfc..b6eb51ce773503ad60031b999934253edbc39d67 100644 (file)
@@ -174,7 +174,7 @@ ivtv_write_vbi_from_user(struct ivtv *itv,
                        ret = -EFAULT;
                        break;
                }
-               ivtv_write_vbi_line(itv, sliced + i, &cc, &found_cc);
+               ivtv_write_vbi_line(itv, &d, &cc, &found_cc);
        }
 
        if (found_cc)