Index: sys/dev/mpr/mpr_user.c =================================================================== --- sys/dev/mpr/mpr_user.c +++ sys/dev/mpr/mpr_user.c @@ -2226,7 +2226,7 @@ if (bus != 0) return (EINVAL); - if (target > sc->max_devices) { + if (target >= sc->max_devices) { mpr_dprint(sc, MPR_XINFO, "Target ID is out of range " "for Bus/Target to DevHandle mapping."); return (EINVAL); Index: sys/dev/mps/mps_user.c =================================================================== --- sys/dev/mps/mps_user.c +++ sys/dev/mps/mps_user.c @@ -2128,7 +2128,7 @@ if (bus != 0) return (EINVAL); - if (target > sc->max_devices) { + if (target >= sc->max_devices) { mps_dprint(sc, MPS_FAULT, "Target ID is out of range " "for Bus/Target to DevHandle mapping."); return (EINVAL);