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>
This commit is contained in:
committed by
Kieran Bingham
parent
3a1f67a803
commit
093b71b24a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user