[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)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 8 Jun 2013 22:46:27 +0000 (19:46 -0300)
commit3e748268f391eaf46fe547eb3e51bfec387a63c5
treefb41016a8dcd9821bee18041c6497fb56147a00b
parentfcb62825e7289f937f4af26a741e3af8da9242de
[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