[media] media: am437x-vpfe: Fix a race condition during release
authorBenoit Parrot <bparrot@ti.com>
Wed, 15 Jul 2015 21:00:06 +0000 (18:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 22 Jul 2015 14:03:54 +0000 (11:03 -0300)
commitc99235fa3ef833c3c23926085f2bb68851c8460a
treef9b3705506eb91fc040bbd2e861f75aba5e899fe
parent2091f5181c66b3617a977e79843aba10e087be6c
[media] media: am437x-vpfe: Fix a race condition during release

There was a race condition where during cleanup/release operation
on-going streaming would cause a kernel panic because the hardware
module was disabled prematurely with IRQ still pending.

Fixes: 417d2e507edc ("[media] media: platform: add VPFE capture driver support for AM437X")

Cc: <stable@vger.kernel.org> # v4.0+
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/am437x/am437x-vpfe.c