summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/rkisp1/rkisp1.cpp
diff options
context:
space:
mode:
authorSebastian Fricke <sebastian.fricke@posteo.net>2021-04-11 18:48:58 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-05-03 13:31:25 +0100
commit093b71b24a361900bcb9c8a76ee7ad85943f4f5b (patch)
treedc47c7226f2dc7851e91f40f8768e1b9a7806e3e /src/libcamera/pipeline/rkisp1/rkisp1.cpp
parent3a1f67a8031ac5ad96a11d5dc8b2e8976290497b (diff)
pipeline: rkisp1: Add check for non-existent frame info
Add a check, that makes sure that the given FrameBuffer is associated to a RkISP1FrameInfo instance. The current code tries to access the frame info without checking if it actually exists. Fixes: 0eb65e14e ("libcamera: pipeline: rkisp1: Attach to an IPA") Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/rkisp1/rkisp1.cpp')
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index c7566639..8d195937 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -1080,6 +1080,8 @@ void PipelineHandlerRkISP1::paramReady(FrameBuffer *buffer)
RkISP1CameraData *data = cameraData(activeCamera_);
RkISP1FrameInfo *info = data->frameInfo_.find(buffer);
+ if (!info)
+ return;
info->paramDequeued = true;
tryCompleteRequest(info->request);