commit | 63d72717c628a34e3eea4a910c004f80dabf7f78 | [log] [tgz] |
---|---|---|
author | Krzysztof Kosiński <krzysio@google.com> | Fri Apr 22 04:27:41 2022 +0000 |
committer | Krzysztof Kosiński <krzysio@google.com> | Fri Apr 22 04:31:04 2022 +0000 |
tree | 1d6272794231602de7e600c288b42dd53e4e92ad | |
parent | 63d69a6565bb661199895621ff7525c5f5e6cc49 [diff] |
GCH: Don't return OK when CreateCameraProviderHwl() return null. CreateCameraProviderHwl() may return nullptr when there's an init error and the caller assumes that the pointer is non-null when on OK status is returned. Based on the logs in the bug, these crashes seem to be triggered on prototype boards with missing or unplugged camera daughter boards. Bug: 218839766 Test: presubmit Change-Id: I6f9a0c065f404fc777e9993774044a2e93ec7678