diff options
author | Andy Walls <awalls@md.metrocast.net> | 2011-02-08 20:39:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:32:35 -0400 |
commit | 0d44b1235c60bf3134f5730ebb4a115f857a2da4 (patch) | |
tree | b68f986322d12c0f6d5c9c48fa8130a70ccb0ad6 /drivers/media/video/ivtv/ivtv-vbi.c | |
parent | 793e71b667856ed6163ad0dc7de1f453e9385590 (diff) |
[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>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-vbi.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-vbi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-vbi.c b/drivers/media/video/ivtv/ivtv-vbi.c index 2dfa957b0fd5..b6eb51ce7735 100644 --- a/drivers/media/video/ivtv/ivtv-vbi.c +++ b/drivers/media/video/ivtv/ivtv-vbi.c | |||
@@ -174,7 +174,7 @@ ivtv_write_vbi_from_user(struct ivtv *itv, | |||
174 | ret = -EFAULT; | 174 | ret = -EFAULT; |
175 | break; | 175 | break; |
176 | } | 176 | } |
177 | ivtv_write_vbi_line(itv, sliced + i, &cc, &found_cc); | 177 | ivtv_write_vbi_line(itv, &d, &cc, &found_cc); |
178 | } | 178 | } |
179 | 179 | ||
180 | if (found_cc) | 180 | if (found_cc) |