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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user