linux_dsm_epyc7002/drivers/media
Arnd Bergmann 97913bcbe6 media: exynos4-is: properly initialize frame format
We copy the subdev frame format from a partially initialized
structure, which is not entirely well-defined. Older compilers
like gcc-4.4 can copy uninitialized stack data here and warn
about it:

drivers/media/platform/exynos4-is/fimc-isp.c: In function 'fimc_isp_subdev_open':
drivers/media/platform/exynos4-is/fimc-isp.c:379: error: 'fmt.reserved[10u]' may be used uninitialized in this function
drivers/media/platform/exynos4-is/fimc-isp.c:379: error: 'fmt.reserved[9u]' may be used uninitialized in this function
...
drivers/media/platform/exynos4-is/fimc-isp.c:379: error: 'fmt.reserved[0u]' may be used uninitialized in this function
drivers/media/platform/exynos4-is/fimc-isp.c:379: error: 'fmt.xfer_func' may be used uninitialized in this function

On newer compilers, only the initialized fields get copied, but
we should not rely on that, so this changes the code to zero-out
the remaining fields first.

Fixes: 9a761e4368 ("[media] exynos4-is: Add Exynos4x12 FIMC-IS driver")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-12-18 15:09:08 -05:00
..
cec media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
common media: v4l2-tpg.h: rename color structs 2017-12-18 12:29:05 -05:00
dvb-core media: dvb_demux: describe nested structs 2017-12-18 09:05:04 -05:00
dvb-frontends media: dvb-frontends: fix i2c access helpers for KASAN 2017-12-15 11:53:50 -05:00
firewire [media] firewire: don't break long lines 2016-10-21 10:06:00 -02:00
i2c media: v4l2-subdev: better document IO pin configuration flags 2017-12-18 14:14:29 -05:00
mmc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci media: v4l2-subdev: better document IO pin configuration flags 2017-12-18 14:14:29 -05:00
platform media: exynos4-is: properly initialize frame format 2017-12-18 15:09:08 -05:00
radio media: radio-si476x: fix behavior when seek->range* are defined 2017-12-11 13:04:51 -05:00
rc media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: r820t: fix r820t_write_reg for KASAN 2017-12-15 11:53:45 -05:00
usb media: pvrusb2: correctly return V4L2_PIX_FMT_MPEG in enum_fmt 2017-12-18 15:01:23 -05:00
v4l2-core media: vb2: unify calling of set_page_dirty_lock 2017-12-18 15:02:08 -05:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00