Commit 0d44b123 authored by Andy Walls's avatar Andy Walls Committed by Mauro Carvalho Chehab

[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: default avatarDr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: default avatarAndy Walls <awalls@md.metrocast.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 793e71b6
...@@ -174,7 +174,7 @@ ivtv_write_vbi_from_user(struct ivtv *itv, ...@@ -174,7 +174,7 @@ ivtv_write_vbi_from_user(struct ivtv *itv,
ret = -EFAULT; ret = -EFAULT;
break; break;
} }
ivtv_write_vbi_line(itv, sliced + i, &cc, &found_cc); ivtv_write_vbi_line(itv, &d, &cc, &found_cc);
} }
if (found_cc) if (found_cc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment