]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:23 +0000 (15:21 +0200)
commit064500b2cd31028572a02c84b427bd08d58e8a70
treeffee5b3282d14c3d07f05e149d76abd753ee7efb
parent609442ec9a188e665da4897c6eace09a5afab791
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/avr32/mach-at32ap/pio.c