summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2009-02-09 17:02:54 +0000
committerfjoe <fjoe@FreeBSD.org>2009-02-09 17:02:54 +0000
commit5194173e3fb8f672cb52ea0b403ecf99b4a9263b (patch)
treef406785a769e66d534abaf9296e0190435c27aeb /sys/cam
parent7dcae636587612944c71b9a5d3f63fe88ab68ccc (diff)
downloadFreeBSD-src-5194173e3fb8f672cb52ea0b403ecf99b4a9263b.zip
FreeBSD-src-5194173e3fb8f672cb52ea0b403ecf99b4a9263b.tar.gz
cam_periph_alloc: fix "invalid periph name" error condition
Found with: Coverity Prevent(tm) CID: 130
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_periph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c
index 6292382..368d409 100644
--- a/sys/cam/cam_periph.c
+++ b/sys/cam/cam_periph.c
@@ -171,7 +171,7 @@ cam_periph_alloc(periph_ctor_t *periph_ctor,
break;
}
xpt_unlock_buses();
- if (p_drv == NULL) {
+ if (*p_drv == NULL) {
printf("cam_periph_alloc: invalid periph name '%s'\n", name);
return (CAM_REQ_INVALID);
}
OpenPOWER on IntegriCloud