kernel_optimize_test/drivers/gpu/ipu-v3
Arnd Bergmann 746d024c32 gpu: ipu-v3: prg: avoid possible array underflow
gcc-8 reports that we access an array with a negative index
in an error case:

drivers/gpu/ipu-v3/ipu-prg.c: In function 'ipu_prg_channel_disable':
drivers/gpu/ipu-v3/ipu-prg.c:252:43: error: array subscript -22 is below array bounds of 'struct ipu_prg_channel[3]' [-Werror=array-bounds]

This moves the range check in front of the first time that
variable gets used.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2018-03-15 17:52:08 +01:00
..
ipu-common.c gpu: ipu-v3: make const arrays int_reg static, shrinks object size 2018-02-16 14:47:43 +01:00
ipu-cpmem.c gpu: ipu-cpmem: add 16-bit grayscale support to ipu_cpmem_set_image 2018-02-19 15:13:00 +01:00
ipu-csi.c gpu: ipu-csi: add 10/12-bit grayscale support to mbus_code_to_bus_cfg 2018-02-19 15:13:05 +01:00
ipu-dc.c
ipu-di.c
ipu-dmfc.c
ipu-dp.c
ipu-ic.c gpu: ipu-v3: allow to build with COMPILE_TEST 2017-12-19 12:49:11 +01:00
ipu-image-convert.c
ipu-pre.c gpu: ipu-v3: pre: fix device node leak in ipu_pre_lookup_by_phandle 2018-02-19 15:12:59 +01:00
ipu-prg.c gpu: ipu-v3: prg: avoid possible array underflow 2018-03-15 17:52:08 +01:00
ipu-prv.h gpu: ipu-v3: pre: add tiled prefetch support 2017-12-19 12:49:11 +01:00
ipu-smfc.c
ipu-vdi.c
Kconfig gpu: ipu-v3: allow to build with COMPILE_TEST 2017-12-19 12:49:11 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00