diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-04-29 14:40:35 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-05-01 12:24:07 +0200 |
commit | dee99d47267e9d9204884b2ff798cd02eb5914f2 (patch) | |
tree | 9e274e924f1949964809cd2800678d9fbfe3dd95 /src/ipa | |
parent | d29c32135709b18f430b75b8f9fc2592a5915149 (diff) |
qcam: Check that camera can generate configuration from roles
If the camera can not generate a configuration from the requested roles
it returns a nullptr which leads to a nullptr dereference. Fix this by
adding a check that the camera generated a configuration before trying
to access it.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa')
0 files changed, 0 insertions, 0 deletions