[media] ivtv: Fix sparse warning regarding a user pointer in ivtv_write_vbi_from_user()

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>
This commit is contained in:
Andy Walls 2011-02-08 22:39:28 -03:00 committed by Mauro Carvalho Chehab
parent 793e71b667
commit 0d44b1235c
1 changed files with 1 additions and 1 deletions

View 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)