g: fix reboot request posting bug

When the host requests the uploader to post a reboot request, the
uploader should exit right away once the request is posted.

BRANCH=none
BUG=chrome-os-partner:59911
TEST=verified that cr50 gets successfully updated from this image to a
     newer one on both reef and gru: the reboot happens under upstart
     control, not by cr50 rebooting on its own.

Change-Id: I9e4a2da686fe512b633daa05c675871e5946926f
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/412348
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
This commit is contained in:
Vadim Bendebury
2016-11-17 15:10:34 -08:00
committed by chrome-bot
parent e97073a20d
commit 14421571ca

View File

@@ -188,6 +188,7 @@ static void upgrade_out_handler(struct consumer const *consumer, size_t count)
*/
rx_state_ = rx_idle;
post_reboot_request();
return;
}
if (rx_state_ == rx_outside_block) {