linux/drivers/media/platform/coda
Philipp Zabel 9b80f12e31 media: coda: ctx->codec is not NULL in coda_alloc_framebuffers
This fixes a smatch warning:

    drivers/media/platform/coda/coda-bit.c:415 coda_alloc_framebuffers()
    error: we previously assumed 'ctx->codec' could be null (see line 396)

coda_alloc_framebuffers() is called from coda_start_encoding() and
__coda_start_decoding(). Both dereference ctx->codec before calling
coda_alloc_framebuffers() in lines 935 and 1649, so ctx->codec can not
be NULL.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-24 09:35:35 -03:00
..
coda_regs.h [media] coda: disable BWB for all codecs on CODA 960 2017-03-22 10:06:23 -03:00
coda-bit.c media: coda: ctx->codec is not NULL in coda_alloc_framebuffers 2017-06-24 09:35:35 -03:00
coda-common.c [media] coda: first step at error recovery 2017-06-20 09:03:51 -03:00
coda-gdi.c [media] coda: add macroblock tiling support 2015-07-17 11:28:59 -03:00
coda-h264.c [media] coda: disable reordering for baseline profile h.264 streams 2017-03-22 10:06:26 -03:00
coda-jpeg.c [media] coda: relax coda_jpeg_check_buffer for trailing bytes 2015-12-23 14:02:14 -02:00
coda.h [media] coda: first step at error recovery 2017-06-20 09:03:51 -03:00
imx-vdoa.c [media] coda/imx-vdoa: always wait for job completion 2017-06-20 09:04:21 -03:00
imx-vdoa.h [media] coda: add i.MX6 VDOA driver 2017-01-31 08:10:18 -02:00
Makefile [media] coda: add i.MX6 VDOA driver 2017-01-31 08:10:18 -02:00
trace.h [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00