The patch number 11029 was added via Guennadi Liakhovetski 
<[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:
        Linux Media Mailing List <[email protected]>

------

From: Magnus Damm  <[email protected]>
video: use videobuf_waiton() in sh_mobile_ceu free_buffer()

Make sure videobuf_waiton() is used before freeing a buffer.
Without this fix we may return the buffer to the allocator
before the bus mastering operation is finished.

Reported-by: Matthieu CASTET <[email protected]>
Tested-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Magnus Damm <[email protected]>
Signed-off-by: Guennadi Liakhovetski <[email protected]>
---
 drivers/media/video/sh_mobile_ceu_camera.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


---

 linux/drivers/media/video/sh_mobile_ceu_camera.c |    1 +
 1 file changed, 1 insertion(+)

diff -r 2e24dad8d0b6 -r 3f7ae26420d1 
linux/drivers/media/video/sh_mobile_ceu_camera.c
--- a/linux/drivers/media/video/sh_mobile_ceu_camera.c  Fri Mar 13 10:08:20 
2009 +0100
+++ b/linux/drivers/media/video/sh_mobile_ceu_camera.c  Fri Mar 13 10:08:20 
2009 +0100
@@ -175,6 +175,7 @@ static void free_buffer(struct videobuf_
        if (in_interrupt())
                BUG();
 
+       videobuf_waiton(&buf->vb, 0, 0);
        videobuf_dma_contig_free(vq, &buf->vb);
        dev_dbg(&icd->dev, "%s freed\n", __func__);
        buf->vb.state = VIDEOBUF_NEEDS_INIT;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/3f7ae26420d14fd340bf0bc85f73f7af17d703d2

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

Reply via email to