Check the correct periph pointer after search for it.
Submitted by: Coverity Prevent analysis tool
This commit is contained in:
parent
90d564346f
commit
86862c1cfa
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user