]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (11130): cx231xx: fix an inverted logic at vidioc_streamoff
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 22 Mar 2009 01:16:34 +0000 (22:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:44:07 +0000 (21:44 -0300)
Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-video.c

index c8d6e9a04723102fa2119464ee5624fae9f8afe9..9b89a91e0c2a4a902f742e8a60f2df53bfcc5165 100644 (file)
@@ -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)