aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-fileops.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-fileops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c
index d727485da886..c57a58523ca8 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/drivers/media/video/ivtv/ivtv-fileops.c
@@ -570,8 +570,8 @@ ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t c
570 int elems = count / sizeof(struct v4l2_sliced_vbi_data); 570 int elems = count / sizeof(struct v4l2_sliced_vbi_data);
571 571
572 set_bit(IVTV_F_S_APPL_IO, &s->s_flags); 572 set_bit(IVTV_F_S_APPL_IO, &s->s_flags);
573 ivtv_write_vbi(itv, (const struct v4l2_sliced_vbi_data *)user_buf, elems); 573 return ivtv_write_vbi_from_user(itv,
574 return elems * sizeof(struct v4l2_sliced_vbi_data); 574 (const struct v4l2_sliced_vbi_data __user *)user_buf, elems);
575 } 575 }
576 576
577 mode = s->type == IVTV_DEC_STREAM_TYPE_MPG ? OUT_MPG : OUT_YUV; 577 mode = s->type == IVTV_DEC_STREAM_TYPE_MPG ? OUT_MPG : OUT_YUV;