libcamera: ipu3: Catch return value when disabling links

Ensure that any error from the disableLinks() call during match() is
propogated to the caller.

Fixes: d698ed2749 ("libcamera: ipu3: Create ImgUDevice class")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Kieran Bingham
2019-04-03 16:31:15 +07:00
parent a8cab93b18
commit 78552c818b

View File

@@ -511,7 +511,8 @@ bool PipelineHandlerIPU3::match(DeviceEnumerator *enumerator)
* going through a library teardown->match() sequence would fail
* at the moment.
*/
if (imguMediaDev_->disableLinks())
ret = imguMediaDev_->disableLinks();
if (ret)
goto error;
ret = registerCameras();