diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-03-23 15:24:21 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-04-06 10:34:02 +0200 |
commit | 5dccfce4ef32efe8548d6bf81686a98529aecc3a (patch) | |
tree | ae7508db3719e150b10d9bf4092aabc8ac626434 /drivers/media/platform/s5p-mfc | |
parent | media: hantro: fix kernel-doc warnings and style (diff) | |
download | linux-5dccfce4ef32efe8548d6bf81686a98529aecc3a.tar.xz linux-5dccfce4ef32efe8548d6bf81686a98529aecc3a.zip |
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: 2db16c6ed72c ("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>
Diffstat (limited to 'drivers/media/platform/s5p-mfc')
0 files changed, 0 insertions, 0 deletions