From: Andy Walls Date: Wed, 9 Feb 2011 01:39:28 +0000 (-0300) Subject: [media] ivtv: Fix sparse warning regarding a user pointer in ivtv_write_vbi_from_user() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d44b1235c60bf3134f5730ebb4a115f857a2da4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- 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, 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)