linux/drivers/media/platform/coda
Marco Felsch 0b276e470a media: coda: fix macroblocks count control usage
Commit b2d3bef1aa ("media: coda: Add a V4L2 user for control error
macroblocks count") add the control for the decoder devices. But
during streamon() this ioctl gets called for all (encoder and decoder)
devices and on encoder devices this causes a null pointer exception.

Fix this by setting the control only if it is really accessible.

Fixes: b2d3bef1aa ("media: coda: Add a V4L2 user for control error macroblocks count")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Cc: <stable@vger.kernel.org>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-04-15 13:23:26 +02:00
..
coda_regs.h media: coda: jpeg: add JPEG register definitions for CODA960 2019-12-16 10:04:21 +01:00
coda-bit.c media: coda: Add a V4L2 user for control error macroblocks count 2020-11-16 10:31:16 +01:00
coda-common.c media: coda: fix macroblocks count control usage 2021-04-15 13:23:26 +02:00
coda-gdi.c
coda-h264.c
coda-jpeg.c media: coda: jpeg: add NULL check after kmalloc 2020-07-04 11:56:37 +02:00
coda-mpeg2.c
coda-mpeg4.c
coda.h media: coda: Add a V4L2 user for control error macroblocks count 2020-11-16 10:31:16 +01:00
imx-vdoa.c
imx-vdoa.h
Makefile
trace.h media: coda: jpeg: add CODA960 JPEG encoder support 2019-12-16 10:07:59 +01:00