Skip to content

Commit

Permalink
[media] ivtv: Fix sparse warning regarding a user pointer in ivtv_wri…
Browse files Browse the repository at this point in the history
…te_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>
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 793e71b commit 0d44b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/ivtv/ivtv-vbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d44b12

Please sign in to comment.