diff options
| -rw-r--r-- | sys/dev/nctgpio/nctgpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nctgpio/nctgpio.c b/sys/dev/nctgpio/nctgpio.c index ac2ac574108f..30c364f1ebb3 100644 --- a/sys/dev/nctgpio/nctgpio.c +++ b/sys/dev/nctgpio/nctgpio.c @@ -101,7 +101,7 @@ struct nct_softc { struct mtx mtx; struct resource *portres; int rid; - struct gpio_pin pins[NCT_MAX_PIN]; + struct gpio_pin pins[NCT_MAX_PIN + 1]; }; #define GPIO_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \ |
