提交 92fcbd3f 编写于 作者: M Mauro Carvalho Chehab

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

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ecc67d10
...@@ -1614,7 +1614,7 @@ static int vidioc_streamoff(struct file *file, void *priv, ...@@ -1614,7 +1614,7 @@ static int vidioc_streamoff(struct file *file, void *priv,
if (rc < 0) if (rc < 0)
return rc; 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)) (fh->type != V4L2_BUF_TYPE_VBI_CAPTURE))
return -EINVAL; return -EINVAL;
if (type != fh->type) if (type != fh->type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册