summaryrefslogtreecommitdiff
path: root/common/flash.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-06-01 21:43:29 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-02 16:59:33 -0700
commitd0ee126b4cdc368c36ae6660d66fed1524476e59 (patch)
tree7706d63621017c7c79445aef36d799ee54b125d2 /common/flash.c
parentee545922389739b39cc0ac7e0f0d1dd8c2c67607 (diff)
downloadchrome-ec-d0ee126b4cdc368c36ae6660d66fed1524476e59.tar.gz
cr50: usb_upgrade: pass proper number of bytes to the vendor commands
The code invoking vendor commands callbacks rightly passes the pointer to the command payload as the address right after the subcommand field, but does not deduct the size of the subcommand field from the size of the payload passed to the handler. This patch fixes the issue, the command handlers do not see two extra bytes at the tail of the command any more. BRANCH=cr50 BUG=b:62294740, b:35545754 TEST=verified that vendor commands sent over USB and TPM still work properly (in particular the TURN_UPDATE_ON command). Change-Id: I11a45f65163044f808a82b214f9c5faf775f9020 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/522943 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'common/flash.c')
0 files changed, 0 insertions, 0 deletions