The patch number 13285 was added via Douglas Schilling Landgraf <dougsl...@redhat.com> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: Linux Media Mailing List <linux-me...@vger.kernel.org> ------ From: Roel Kluin <roel.kl...@gmail.com> vpfe_capture: keep index within bound in vpfe_cropcap() If vpfe_dev->std_index equals ARRAY_SIZE(vpfe_standards), that is one too large. Priority: normal Signed-off-by: Roel Kluin <roel.kl...@gmail.com> Acked-by: Muralidharan Karicheri <m-kariche...@ti.com> Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com> --- linux/drivers/media/video/davinci/vpfe_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -r b8282a1720c4 -r cb39968d9c97 linux/drivers/media/video/davinci/vpfe_capture.c --- a/linux/drivers/media/video/davinci/vpfe_capture.c Wed Nov 04 05:07:53 2009 -0200 +++ b/linux/drivers/media/video/davinci/vpfe_capture.c Wed Nov 04 12:16:25 2009 -0500 @@ -1577,7 +1577,7 @@ v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_cropcap\n"); - if (vpfe_dev->std_index > ARRAY_SIZE(vpfe_standards)) + if (vpfe_dev->std_index >= ARRAY_SIZE(vpfe_standards)) return -EINVAL; memset(crop, 0, sizeof(struct v4l2_cropcap)); --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/cb39968d9c97676d0b83996824ad0ac478dd9b50 _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits