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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:29 +0000 (01:01 +0000)
commit2546f7baa08278d3d065359e4a1951c89a385297
tree710a463587e42fc97e64113ad3f8685946d18c45
parentdc640fc945559930afb520b20c429e4a9db4561f
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: Ben Hutchings <ben@decadent.org.uk>
arch/avr32/mach-at32ap/pio.c