diff options
author | fjoe <fjoe@FreeBSD.org> | 2009-02-09 17:02:54 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2009-02-09 17:02:54 +0000 |
commit | 5194173e3fb8f672cb52ea0b403ecf99b4a9263b (patch) | |
tree | f406785a769e66d534abaf9296e0190435c27aeb /sys/cam/cam_periph.c | |
parent | 7dcae636587612944c71b9a5d3f63fe88ab68ccc (diff) | |
download | FreeBSD-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/cam_periph.c')
-rw-r--r-- | sys/cam/cam_periph.c | 2 |
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); } |