Commit 92fcbd3f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (11130): cx231xx: fix an inverted logic at vidioc_streamoff

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ecc67d10
......@@ -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)
......
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