From: Mauro Carvalho Chehab Date: Sun, 22 Mar 2009 01:16:34 +0000 (-0300) Subject: V4L/DVB (11130): cx231xx: fix an inverted logic at vidioc_streamoff X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92fcbd3f4ea07a8efd2d2881645baae0a061c82e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git V4L/DVB (11130): cx231xx: fix an inverted logic at vidioc_streamoff Cc: Srinivasa Deevi Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx231xx/cx231xx-video.c b/drivers/media/video/cx231xx/cx231xx-video.c index c8d6e9a04723..9b89a91e0c2a 100644 --- a/drivers/media/video/cx231xx/cx231xx-video.c +++ b/drivers/media/video/cx231xx/cx231xx-video.c @@ -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)