avr32: off by one in at32_init_pio()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Jul 2016 10:08:55 +0000 (13:08 +0300)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:32:57 +0000 (23:32 +0100)
commitcba31cb93827b2c119616470555eb852f860fb45
treec1b72406022d27656516cd658eb624c4edb278ae
parentda189d04e7b33cdc1b8f98216bd1a7f011f56614
avr32: off by one in at32_init_pio()

commit 55f1cf83d5cf885c75267269729805852039c834 upstream.

The pio_dev[] array has MAX_NR_PIO_DEVICES elements so the > should be
>=.

Fixes: 5f97f7f9400d ('[PATCH] avr32 architecture')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/avr32/mach-at32ap/pio.c