[media] vpif_capture: protect dma_queue by a spin_lock
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 16 Nov 2012 15:03:06 +0000 (12:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 22 Nov 2012 14:36:29 +0000 (12:36 -0200)
commitaec968326df3c60d140c4bcb00f2ee982acd01cb
tree9971347e493ee04c1451014eafc759da40ea6024
parent94b76a88f16c869109c41380c77f4a2b847650e3
[media] vpif_capture: protect dma_queue by a spin_lock

The dma_queue list is accessed by both the interrupt handler and by normal
code. It needs to be protected by a lock to prevent possible list corruption.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpif_capture.c