Re: [PATCH] [v4] media: s3c-camif: fix out-of-bounds array access

2018-01-16 Thread Sakari Ailus
On Tue, Jan 16, 2018 at 10:52:15PM +0100, Arnd Bergmann wrote: > While experimenting with older compiler versions, I ran > into a warning that no longer shows up on gcc-4.8 or newer: > > drivers/media/platform/s3c-camif/camif-capture.c: In function > '__camif_subdev_try_format': > drivers/media/p

Re: [PATCH] [v4] media: s3c-camif: fix out-of-bounds array access

2018-01-16 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Tuesday, 16 January 2018 23:52:15 EET Arnd Bergmann wrote: > While experimenting with older compiler versions, I ran > into a warning that no longer shows up on gcc-4.8 or newer: > > drivers/media/platform/s3c-camif/camif-capture.c: In function > '__camif_sub

[PATCH] [v4] media: s3c-camif: fix out-of-bounds array access

2018-01-16 Thread Arnd Bergmann
While experimenting with older compiler versions, I ran into a warning that no longer shows up on gcc-4.8 or newer: drivers/media/platform/s3c-camif/camif-capture.c: In function '__camif_subdev_try_format': drivers/media/platform/s3c-camif/camif-capture.c:1265:25: error: array subscript is below