[roll] Roll fuchsia [camera] Fix another uninitialized memory access.

When the camera is disabled during boot, Imx227Device::current_mode_ is
left uninitialized when Imx227Device::CameraSensor2SetMode() errors out.
Later, the driver crashes when using the uninitialized current_mode_ to
index available_modes in Imx227Device::CameraSensor2GetExtensionValue().

Fix the crash by setting an initial value for current_mode_. Setting an
initial value is necessary, rather than returning errors for queries
before a mode is set successfully, because the setup of InputNode /
ProcessingNode does not gracefully handle errors and asserts if any
queries fail. This mitigation is not ideal, but it prevents a crash that
otherwise results in the camera subsystem failing to initialize.

Original-Bug: b/228516004
Original-Bug: b/242083127
Test: Video functions after booting with camera hw switch off.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/712442
Original-Revision: 577497e9f48bed8dac9198cb2c94fbfbad3d0deb
GitOrigin-RevId: 88e8bb2decb771ededd8b321d47a31f71e61ccbb
Change-Id: I836bdfafe2daa0e967d9edd188db4cf8e8eef220
1 file changed
tree: 6edcd1ed11a472e0bd47d900b9f8c5ec2d075970
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
  13. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.