]> git.baikalelectronics.ru Git - kernel.git/commit
[media] marvell-cam: Remove broken "owner" logic
authorJonathan Corbet <corbet@lwn.net>
Fri, 16 Mar 2012 22:14:51 +0000 (19:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 01:15:29 +0000 (22:15 -0300)
commit9d38f5dd15c3d722233b58d6efc47e0c1c11fd23
treebdecbe964775ba9341ea5dba9bc11347ac09ea18
parent80996ff2776ce673e93030360a1f6f36501d4da2
[media] marvell-cam: Remove broken "owner" logic

The marvell cam driver retained just enough of the owner-tracking logic
from cafe_ccic to be broken; it could, conceivably, cause the driver to
release DMA memory while the controller is still active.  Simply remove the
remaining pieces and ensure that the controller is stopped before we free
things.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/marvell-ccic/mcam-core.c
drivers/media/video/marvell-ccic/mcam-core.h