cam_periph_alloc: fix "invalid periph name" error condition

Found with:	Coverity Prevent(tm)
CID:		130
This commit is contained in:
Max Khon 2009-02-09 17:02:54 +00:00
parent 0a5eaa9d0e
commit aa812d9e2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188395

View File

@ -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);
}