This is a note to let you know that I've just added the patch titled
gspca-core: Fix buffers staying in queued state after a stream_off
to the 3.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
gspca-core-fix-buffers-staying-in-queued-state-after-a-stream_off.patch
and it can be found in the queue-3.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From [email protected] Wed Jul 11 14:59:27 2012
From: Antonio Ospite <[email protected]>
Date: Thu, 5 Jul 2012 10:23:17 +0200
Subject: gspca-core: Fix buffers staying in queued state after a stream_off
To: [email protected]
Cc: Hans de Goede <[email protected]>, Antonio Ospite
<[email protected]>, Mauro Carvalho Chehab <[email protected]>
Message-ID: <[email protected]>
From: Hans de Goede <[email protected]>
commit af05ef01e9cde84620c6855a8d8ab9c8a1db9009 upstream.
[Backport to linux-stable by Antonio Ospite <[email protected]>]
This fixes a regression introduced by commit f7059ea and should be
backported to all supported stable kernels which have this commit.
Signed-off-by: Antonio Ospite <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Tested-by: Antonio Ospite <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/media/video/gspca/gspca.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -1723,7 +1723,7 @@ static int vidioc_streamoff(struct file
enum v4l2_buf_type buf_type)
{
struct gspca_dev *gspca_dev = priv;
- int ret;
+ int i, ret;
if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
@@ -1754,6 +1754,8 @@ static int vidioc_streamoff(struct file
wake_up_interruptible(&gspca_dev->wq);
/* empty the transfer queues */
+ for (i = 0; i < gspca_dev->nframes; i++)
+ gspca_dev->frame[i].v4l2_buf.flags &= ~BUF_ALL_FLAGS;
atomic_set(&gspca_dev->fr_q, 0);
atomic_set(&gspca_dev->fr_i, 0);
gspca_dev->fr_o = 0;
Patches currently in stable-queue which might be from [email protected]
are
queue-3.4/gspca-core-fix-buffers-staying-in-queued-state-after-a-stream_off.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html