Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)