This allows i == MAXHA, which is out of range Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx> --- diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index 185e6bc..0c64940 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c @@ -3841,7 +3841,7 @@ int __init option_setup(char *str) TRACE2(("option_setup() str %s ", str ? str:"NULL")); - while (cur && isdigit(*cur) && i <= MAXHA) { + while (cur && isdigit(*cur) && i < MAXHA) { ints[i++] = simple_strtoul(cur, NULL, 0); if ((cur = strchr(cur, ',')) != NULL) cur++; } -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html