cam_periph_alloc: fix "invalid periph name" error condition
Found with: Coverity Prevent(tm) CID: 130
This commit is contained in:
parent
0a5eaa9d0e
commit
aa812d9e2a
@ -171,7 +171,7 @@ cam_periph_alloc(periph_ctor_t *periph_ctor,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
xpt_unlock_buses();
|
xpt_unlock_buses();
|
||||||
if (p_drv == NULL) {
|
if (*p_drv == NULL) {
|
||||||
printf("cam_periph_alloc: invalid periph name '%s'\n", name);
|
printf("cam_periph_alloc: invalid periph name '%s'\n", name);
|
||||||
return (CAM_REQ_INVALID);
|
return (CAM_REQ_INVALID);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user