diff options
Diffstat (limited to 'sys/i4b/layer1/ifpi/i4b_ifpi_pci.c')
-rw-r--r-- | sys/i4b/layer1/ifpi/i4b_ifpi_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c index 8ff860e..6ab166c 100644 --- a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c +++ b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c @@ -502,8 +502,8 @@ avma1pp_attach_avma1pp(device_t dev) bzero(sc, sizeof(struct l1_softc)); /* probably not really required */ - if(unit > IFPI_MAXUNIT) { - printf("avma1pp%d: Error, unit > IFPI_MAXUNIT!\n", unit); + if(unit >= IFPI_MAXUNIT) { + printf("avma1pp%d: Error, unit >= IFPI_MAXUNIT!\n", unit); splx(s); return(ENXIO); } |