linux/drivers/media/platform/imx-jpeg
Colin Ian King 5dccfce4ef media: imx-jpeg: Pass the v4l2_jpeg_header header argument by reference
Currently the header argument is being passed by value, so a copy of 256
byte structure on the stack is potentially occurring. Fix this by passing
by reference to avoid any large stack copies.

Addresses-Coverity: ("Big parameter passed by value")

Fixes: 2db16c6ed7 ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-04-06 10:34:02 +02:00
..
Kconfig
Makefile
mxc-jpeg-hw.c
mxc-jpeg-hw.h
mxc-jpeg.c media: imx-jpeg: Pass the v4l2_jpeg_header header argument by reference 2021-04-06 10:34:02 +02:00
mxc-jpeg.h