[media] vpif_display: protect dma_queue by a spin_lock
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 16 Nov 2012 15:03:07 +0000 (12:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 22 Nov 2012 14:36:53 +0000 (12:36 -0200)
commitc4697d7f96f40cdc8f88bcdf4bf13d74ea11c4cc
tree8ff45f6260ae50eea7764b2b3db19babe90e2cce
parentaec968326df3c60d140c4bcb00f2ee982acd01cb
[media] vpif_display: 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.
Corruption has been observed in 'real-life' conditions. Adding this lock made
it go away.

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_display.c