Skip to content

Commit

Permalink
V4L/DVB (11130): cx231xx: fix an inverted logic at vidioc_streamoff
Browse files Browse the repository at this point in the history
Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 7, 2009
1 parent ecc67d1 commit 92fcbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/cx231xx/cx231xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ static int vidioc_streamoff(struct file *file, void *priv,
if (rc < 0)
return rc;

if ((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) ||
if ((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) &&
(fh->type != V4L2_BUF_TYPE_VBI_CAPTURE))
return -EINVAL;
if (type != fh->type)
Expand Down

0 comments on commit 92fcbd3

Please sign in to comment.