Message ID | 1473082601-15887-1-git-send-email-yuval.shaia@oracle.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/src/acm.c b/src/acm.c index f6191bd..ab1269f 100644 --- a/src/acm.c +++ b/src/acm.c @@ -3117,7 +3117,11 @@ int CDECL_FUNC main(int argc, char **argv) for (i = 0; i < ACM_MAX_COUNTER; i++) atomic_init(&counter[i]); - umad_init(); + if (umad_init() != 0) { + acm_log(0, "ERROR - fail to initialize umad\n"); + return -1; + } + if (acm_open_providers()) { acm_log(0, "ERROR - unable to open any providers\n"); return -1;
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> --- src/acm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)