upstream: [media] coda: do not call v4l2_m2m_job_finish from .job_abort
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 23 May 2013 13:43:01 +0000 (10:43 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:48:07 +0000 (11:48 +0900)
commitcb0a03807678378152fb2693c9e51f68f8df4a01
treec676ec1028b72e54c1041643ce047f5c72aac33f
parente055f46eb77160b20e96afa6234d971852bb48cd
upstream: [media] coda: do not call v4l2_m2m_job_finish from .job_abort

If we just declare the job finished here while the CODA is still
running, the call to v4l2_m2m_ctx_release in coda_release, which
is supposed to wait for a running job to finish, will return
immediately and free memory that the CODA is still using.
Just set the 'aborting' flag and let coda_irq_handler deal with it.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c