summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-04-03 16:31:15 +0700
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-04-03 18:03:41 +0700
commit78552c818b8b9f9ea3b1a244e4d5ba2c86b07ce6 (patch)
tree1a5b28213a638f5712067d258cc9fc5e2d0ccaae
parenta8cab93b18c5cab8870b3ad48525674bdee2bcd8 (diff)
libcamera: ipu3: Catch return value when disabling links
Ensure that any error from the disableLinks() call during match() is propogated to the caller. Fixes: d698ed27494a ("libcamera: ipu3: Create ImgUDevice class") Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 164e187c..fed04ce5 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -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();