]> 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)
commitee8a5664017ebe0309b28682df04bf71d10c3c82
treec327f25f2a51fc32382f0fcff4fee7c0532b6f15
parent751468a526c610c5aeb8dd7aa9900d861e9c8360
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