The patch number 9991 was added via Jean-Francois Moine <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [email protected]

------

From: Jean-Francois Moine  <[email protected]>
gspca - main: Check if a buffer has been queued on streamon.


Priority: normal

Signed-off-by: Jean-Francois Moine <[email protected]>


---

 linux/drivers/media/video/gspca/gspca.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 09e4b33cfcda -r 16566c6803dc linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Fri Dec 19 19:08:51 2008 +0100
+++ b/linux/drivers/media/video/gspca/gspca.c   Fri Dec 19 19:17:25 2008 +0100
@@ -1236,7 +1236,8 @@ static int vidioc_streamon(struct file *
                ret = -ENODEV;
                goto out;
        }
-       if (gspca_dev->nframes == 0) {
+       if (gspca_dev->nframes == 0
+           || !(gspca_dev->frame[0].v4l2_buf.flags & V4L2_BUF_FLAG_QUEUED)) {
                ret = -EINVAL;
                goto out;
        }


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/16566c6803dcead8f7b2afba4eb86a5277fca584

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to