From 78552c818b8b9f9ea3b1a244e4d5ba2c86b07ce6 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 3 Apr 2019 16:31:15 +0700 Subject: 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 Signed-off-by: Kieran Bingham --- src/libcamera/pipeline/ipu3/ipu3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.1