diff options
author | scottl <scottl@FreeBSD.org> | 2005-02-20 23:51:20 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-02-20 23:51:20 +0000 |
commit | 08cd16c6a480026bcbfc5351b60c8a43c97bd7a8 (patch) | |
tree | c9b0ee8d5981f889f8afad413cdbf96e0908fe27 /sys/cam | |
parent | e02b7c32b9b55229a5830a2918e6c186ad9d023c (diff) | |
download | FreeBSD-src-08cd16c6a480026bcbfc5351b60c8a43c97bd7a8.zip FreeBSD-src-08cd16c6a480026bcbfc5351b60c8a43c97bd7a8.tar.gz |
Check the correct periph pointer after search for it.
Submitted by: Coverity Prevent analysis tool
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_xpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 128d729..53f9d0e 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); } |