summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
index 61b0657..58dad10 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
@@ -113,8 +113,10 @@ static int HalCtlsInitOneApi(AFB_ApiT apiHandle)
currentCtlHalData->status = HAL_STATUS_UNAVAILABLE;
else {
currentCtlHalData->status = HAL_STATUS_AVAILABLE;
- if((err = HalCtlsAttachToMixer(apiHandle)))
+ if((err = HalCtlsAttachToMixer(apiHandle))) {
AFB_ApiError(apiHandle, "%s: Error %i while attaching to mixer", __func__, err);
+ return -4;
+ }
}
// TBD JAI: handle refresh of hal status for dynamic card (/dev/by-id)