svn commit: r188395 - head/sys/cam
Max Khon
fjoe at FreeBSD.org
Mon Feb 9 09:02:54 PST 2009
Author: fjoe
Date: Mon Feb 9 17:02:54 2009
New Revision: 188395
URL: http://svn.freebsd.org/changeset/base/188395
Log:
cam_periph_alloc: fix "invalid periph name" error condition
Found with: Coverity Prevent(tm)
CID: 130
Modified:
head/sys/cam/cam_periph.c
Modified: head/sys/cam/cam_periph.c
==============================================================================
--- head/sys/cam/cam_periph.c Mon Feb 9 16:58:18 2009 (r188394)
+++ head/sys/cam/cam_periph.c Mon Feb 9 17:02:54 2009 (r188395)
@@ -171,7 +171,7 @@ cam_periph_alloc(periph_ctor_t *periph_c
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);
}
More information about the svn-src-all
mailing list