summaryrefslogtreecommitdiff
path: root/sys/dev/nctgpio
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2016-04-20 01:17:18 +0000
committerConrad Meyer <cem@FreeBSD.org>2016-04-20 01:17:18 +0000
commit523af57ea24624de9430a0bf980b515ba7148b53 (patch)
treea0e18543d1a7f2c19afaceb34d90d83ddc89ad99 /sys/dev/nctgpio
parent3765b809934386dda7010960d5494fcb77dd0a8a (diff)
Notes
Diffstat (limited to 'sys/dev/nctgpio')
-rw-r--r--sys/dev/nctgpio/nctgpio.c2
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, \