diff options
author | Umang Jain <email@uajain.com> | 2020-05-15 12:42:54 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-06-04 11:02:39 +0100 |
commit | a69a8ffb0293e9e962fb7354a94a2872467a2e65 (patch) | |
tree | 9050f8c50a57219a9c275e3ade859cd9d00fe16b /src/qcam/assets/feathericons/triangle.svg | |
parent | 3706b716eba66e77c27ab365f54e6b13f145fea8 (diff) |
libcamera: camera: Return -EINVAL if any stream is null while configure()
Fail and return the Camera::configure() operation if any
of the stream turns out to be a nullptr even after the
PipelineHandler handler seems to have configured the config
successfully. This prevents a null-dereference below in the
loop.
Reported-by: Coverity CID=279069
Signed-off-by: Umang Jain <email@uajain.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/triangle.svg')
0 files changed, 0 insertions, 0 deletions