Check the correct periph pointer after search for it.

Submitted by: Coverity Prevent analysis tool
This commit is contained in:
scottl 2005-02-20 23:51:20 +00:00
parent 90d564346f
commit 86862c1cfa

View File

@ -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);
}