diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 128d729b971e..53f9d0eaeeff 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -2546,7 +2546,7 @@ xptplistperiphfunc(struct cam_periph *periph, void *arg) break; } - if (pdrv == NULL) { + if (*pdrv == NULL) { cdm->status = CAM_DEV_MATCH_ERROR; return(0); }