summaryrefslogtreecommitdiff
path: root/test/v4l2_subdevice/test_formats.cpp
diff options
context:
space:
mode:
authorUmang Jain <email@uajain.com>2020-05-15 12:42:54 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-06-04 11:02:39 +0100
commita69a8ffb0293e9e962fb7354a94a2872467a2e65 (patch)
tree9050f8c50a57219a9c275e3ade859cd9d00fe16b /test/v4l2_subdevice/test_formats.cpp
parent3706b716eba66e77c27ab365f54e6b13f145fea8 (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 'test/v4l2_subdevice/test_formats.cpp')
0 files changed, 0 insertions, 0 deletions