[media] coda: set bitstream end flag in coda_release
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 8 Oct 2014 16:09:11 +0000 (13:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 17:40:37 +0000 (15:40 -0200)
This should fix CODA crashes due to timeouts when stopping
the decoding process with SIGINT.

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@osg.samsung.com>
drivers/media/platform/coda/coda-common.c

index 151e45b62547aece049dc8e23cf6c139b6bc9ff3..ffb99442ac6ab7bc7e1f5d744d55b1464c5aab5a 100644 (file)
@@ -1695,6 +1695,9 @@ static int coda_release(struct file *file)
 
        debugfs_remove_recursive(ctx->debugfs_entry);
 
+       if (ctx->inst_type == CODA_INST_DECODER)
+               coda_bit_stream_end_flag(ctx);
+
        /* If this instance is running, call .job_abort and wait for it to end */
        v4l2_m2m_ctx_release(ctx->fh.m2m_ctx);