The INPUT(n) macro indexes an array of size 2. Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> --- orig/drivers/staging/cx25821/cx25821-video.c 2009-12-28 09:25:39.000000000 +0200 +++ devel/drivers/staging/cx25821/cx25821-video.c 2009-12-28 09:25:55.000000000 +0200 @@ -876,7 +876,7 @@ int cx25821_enum_input(struct cx25821_de dprintk(1, "%s()\n", __func__); n = i->index; - if (n > 2) + if (n >= 2) return -EINVAL; if (0 == INPUT(n)->type) _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel