]> git.baikalelectronics.ru Git - kernel.git/commit
carma-fpga: fix lockdep warning
authorIra Snyder <iws@ovro.caltech.edu>
Thu, 26 Jan 2012 10:59:54 +0000 (10:59 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Feb 2012 00:33:59 +0000 (11:33 +1100)
commitafc7f27674c4fc4dc6bd62f81fd58901d6466f8e
treec327f25f2a51fc32382f0fcff4fee7c0532b6f15
parent0128eb1e16b817c557f9550d1ecfe538f5c5fd9b
carma-fpga: fix lockdep warning

Lockdep occasionally complains with the message:
INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected

This is caused by calling videobuf_dma_unmap() under spin_lock_irq(). To
fix the warning, we drop the lock before unmapping and freeing the
buffer.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/misc/carma/carma-fpga.c