mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
The i2c_packet structure wasn't always being initialized in the error path. It's possible to crash the EC if the first command processed hit this error path. Instead, unconditionally set all the i2c_packet fields. BUG=chrome-os-partner:30784 BRANCH=None TEST=Built and ran on ryu. Change-Id: Ic6d7c63f61d59c4449fbb20f656c1bfb835db8be Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/212164 Reviewed-by: Alec Berg <alecaberg@chromium.org>