--- src/sys/bus/cam/cam_xpt.c 2007/11/24 19:19:43 1.43 +++ src/sys/bus/cam/cam_xpt.c 2007/11/28 21:05:00 1.44 @@ -1831,7 +1831,7 @@ xptdevicematch(struct dev_match_pattern * If there are no match entries, then this device matches no * matter what. */ - if ((patterns == NULL) || (patterns == 0)) + if ((patterns == NULL) || (num_patterns == 0)) return(DM_RET_DESCEND | DM_RET_COPY); for (i = 0; i < num_patterns; i++) {