提交 0d44b123 编写于 作者: A Andy Walls 提交者: 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: NDr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: NAndy Walls <awalls@md.metrocast.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 793e71b6
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册