mirror of https://gitee.com/openkylin/linux.git
746d024c32
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ipu-common.c | ||
ipu-cpmem.c | ||
ipu-csi.c | ||
ipu-dc.c | ||
ipu-di.c | ||
ipu-dmfc.c | ||
ipu-dp.c | ||
ipu-ic.c | ||
ipu-image-convert.c | ||
ipu-pre.c | ||
ipu-prg.c | ||
ipu-prv.h | ||
ipu-smfc.c | ||
ipu-vdi.c |